Show / Hide Table of Contents

Base32 Class

Namespace: Yubico.Core.Buffers Assembly: Yubico.Core.dll

Class for encoding and decoding bytes into Base32.

C#
public class Base32 : ITextEncoding
Inheritance object Base32
Implements
ITextEncoding

Remarks

See RFC4648 for details (https://datatracker.ietf.org/doc/html/rfc4648) on base-32.

Methods

Name Description
Decode(ReadOnlySpan<char>, Span<byte>)

Decode the string into data.

Decode(string)

Decode the string into a byte array.

DecodeText(ReadOnlySpan<char>, Span<byte>)

Decode the string into data.

DecodeText(string)

Decode the string into a byte array.

Encode(ReadOnlySpan<byte>)

Encode the byte collection into a string representation.

Encode(ReadOnlySpan<byte>, Span<char>)

Encode the byte collection into encoded.

EncodeBytes(ReadOnlySpan<byte>)

Encode the byte collection into a string representation.

EncodeBytes(ReadOnlySpan<byte>, Span<char>)

Encode the byte collection into encoded.

GetDecodedSize(ReadOnlySpan<char>)

Get the number of bytes in data represented by base-32 encoded text.

GetEncodedSize(int)

Gets the number of characters needed to encode the data.

In this article
Back to top Generated by DocFX