-
-
Notifications
You must be signed in to change notification settings - Fork 1
simpleotp.encoding.iencoder
Eugene Fox edited this page Sep 18, 2024
·
1 revision
Namespace: SimpleOTP.Encoding
Provides methods for encoding and decoding data using the RFC 4648 Base32 "Extended Hex" alphabet.
public interface IEncoder
Attributes NullableContextAttribute
Gets the encoding scheme used by the encoder (e.g. base32
or base32hex
).
public abstract string Scheme { get; }
Converts a byte array to a Base32 string representation.
string EncodeBytes(Byte[] data)
data
Byte[]
The byte array to convert.
String
The Base32 string representation of the byte array.
Converts a Base32 encoded string to a byte array.
Byte[] GetBytes(string data)
data
String
The Base32 encoded string to convert.
Byte[]
The byte array representation of the Base32 encoded string.
©2025 Eugene Fox. Licensed under MIT license