Base64 Class

Static class that provides methods to encode and decode strings in Base64 format.

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
C#
public static class Base64
Inheritance
Object    Base64

Methods

Encode(Byte, Base64FormattingOptions)Converts a Byte array to a corresponding Base64-encoded string. You can determine, whether line breaks are to be inserted into the return value.
Encode(IEnumerableByte, Base64FormattingOptions)Converts a Byte collection to a corresponding Base64-encoded string. You can determine, whether line breaks are to be inserted into the return value.
Encode(ReadOnlySpanByte, Base64FormattingOptions)Converts a read-only Byte span to a corresponding Base64-encoded string. Optional you can determine, whether line breaks are to be inserted into the return value.
Encode(Byte, Int32, Int32, Base64FormattingOptions)Converts a subset of a Byte array to its equivalent Base64-encoded string representation. Parameters specify the subset as an offset in the input array, the number of bytes to be converted, and whether newlines are to be inserted in the return value.
GetBytes(ReadOnlySpanChar)Converts a Base64-encoded read-only character span into a corresponding Byte array.
GetBytes(String)Converts the Base64-encoded String into a Byte array.
GetBytes(ReadOnlySpanChar, Base64ParserOptions)Converts a Base64-encoded read-only character span into a corresponding Byte array and allows to pass options for the conversion.
GetBytes(String, Base64ParserOptions)Converts a Base64-string into a corresponding Byte array and allows to pass options for the conversion.
GetEncodedLengthCalculates the exact output length of Base64-encoded data from the input length of the data to be encoded.

See Also