Class Base64
Base64 forms used by Matrix: unpadded for keys and ciphertexts, padded by some clients, URL-safe in JWKs; decoding accepts all.
Namespace: Uniform.Matrix.Protocol.Core
Assembly: Uniform.Matrix.Protocol.Core.dll
public static class Base64
Methods
|
Edit this page
View Source
Decode standard or URL-safe base64, with or without padding.
Declaration
public static byte[] Decode(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Returns
|
Edit this page
View Source
Standard alphabet without padding.
Declaration
public static string EncodeUnpadded(ReadOnlySpan<byte> bytes)
Parameters
Returns
|
Edit this page
View Source
URL-safe alphabet without padding, as in JWK k.
Declaration
public static string EncodeUrlSafe(ReadOnlySpan<byte> bytes)
Parameters
Returns