CodeGlyphX logo
CodeGlyphX

API Reference

Class

OtpAuthSecret

Namespace CodeGlyphX
Assembly CodeGlyphX
Modifiers static

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 requiredposition: 0
ToBase32 2 overloads
public static String ToBase32(ReadOnlySpan<Byte> bytes) #
Returns: String

Encodes bytes as Base32 without padding (uppercase).

Parameters

bytes System.Byte[] requiredposition: 0
ToBase32(System.ReadOnlySpan{System.Byte} bytes) #

Encodes bytes as Base32 without padding (uppercase).

Parameters

bytes System.ReadOnlySpan{System.Byte} required