Table of Contents

Class BreezeBase64Helper

Namespace
BreezeSdk.Runtime
Assembly
docfx-helper.dll

Utilities for converting between standard Base64 and URL-safe Base64url encoding (RFC 4648 ยง5).

public static class BreezeBase64Helper
Inheritance
BreezeBase64Helper
Inherited Members

Methods

ConvertBase64ToBase64Url(string)

Converts a standard Base64 string to a Base64url string by replacing non-URL-safe characters and stripping padding.

public static string ConvertBase64ToBase64Url(string base64String)

Parameters

base64String string

The standard Base64 input string.

Returns

string

A Base64url string safe for use in URLs and filenames.

ConvertBase64UrlToBase64(string)

Converts a Base64url-encoded string to a standard Base64 string by replacing URL-safe characters and re-adding padding.

public static string ConvertBase64UrlToBase64(string base64UrlString)

Parameters

base64UrlString string

The Base64url input string.

Returns

string

A standard Base64 string with +, /, and = padding characters.

DecodeBase64ToBytes(string)

Decodes a standard Base64 string to a byte array.

public static byte[] DecodeBase64ToBytes(string base64String)

Parameters

base64String string

The Base64-encoded input.

Returns

byte[]

The decoded byte array.

DecodeBase64ToString(string)

Decodes a standard Base64 string to a UTF-8 string.

public static string DecodeBase64ToString(string base64String)

Parameters

base64String string

The Base64-encoded input.

Returns

string

The decoded UTF-8 string.

DecodeBase64UrlToBytes(string)

Decodes a Base64url-encoded string to a byte array.

public static byte[] DecodeBase64UrlToBytes(string base64UrlString)

Parameters

base64UrlString string

The Base64url-encoded input.

Returns

byte[]

The decoded byte array.

DecodeBase64UrlToString(string)

Decodes a Base64url-encoded string to a UTF-8 string.

public static string DecodeBase64UrlToString(string base64UrlString)

Parameters

base64UrlString string

The Base64url-encoded input.

Returns

string

The decoded UTF-8 string.