Skip to content

simpleotp.encoding.iencoder

Eugene Fox edited this page Sep 18, 2024 · 1 revision

IEncoder

Namespace: SimpleOTP.Encoding

Provides methods for encoding and decoding data using the RFC 4648 Base32 "Extended Hex" alphabet.

public interface IEncoder

Attributes NullableContextAttribute

Properties

Scheme

Gets the encoding scheme used by the encoder (e.g. base32 or base32hex).

public abstract string Scheme { get; }

Property Value

String

Methods

EncodeBytes(Byte[])

Converts a byte array to a Base32 string representation.

string EncodeBytes(Byte[] data)

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.

Byte[] GetBytes(string data)

Parameters

data String
The Base32 encoded string to convert.

Returns

Byte[]
The byte array representation of the Base32 encoded string.

Clone this wiki locally