IEncoder
Namespace: SimpleOTP.Encoding
Provides methods for encoding and decoding data using the RFC 4648 Base32 "Extended Hex" alphabet.
Attributes NullableContextAttribute
Properties
Scheme
Gets the encoding scheme used by the encoder (e.g. base32 or base32hex).
Property Value
String
Methods
EncodeBytes(Byte[])
Converts a byte array to a Base32 string representation.
Parameters
data Byte[]
The byte array to convert.
Returns
String
The Base32 string representation of the byte array.
GetBytes(String)
Converts a Base32 encoded string to a byte array.
Parameters
data String
The Base32 encoded string to convert.
Returns
Byte[]
The byte array representation of the Base32 encoded string.