1
0
mirror of https://github.com/XFox111/SimpleOTP.git synced 2026-04-22 08:00:45 +03:00
1
simpleotp.encoding.iencoder
Eugene Fox edited this page 2024-09-18 16:16:09 +03:00

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.