API Reference
Class
OtpAuthSecret
Base32 helpers for otpauth:// secrets.
Inheritance
- Object
- OtpAuthSecret
Methods
public static Byte[] FromBase32(String base32) #Returns:
Byte[]Decodes a Base32-encoded secret into raw bytes.
Parameters
- base32 System.String
ToBase32 2 overloads
public static String ToBase32(ReadOnlySpan<Byte> bytes) #Returns:
StringEncodes bytes as Base32 without padding (uppercase).
Parameters
- bytes System.Byte[]
ToBase32(System.ReadOnlySpan{System.Byte} bytes) #Encodes bytes as Base32 without padding (uppercase).
Parameters
- bytes System.ReadOnlySpan{System.Byte}