Dela via


WebEncoders Class

Definition

Contains utility APIs to assist with common encoding and decoding operations.

public ref class WebEncoders abstract sealed
public static class WebEncoders
type WebEncoders = class
Public Class WebEncoders
Inheritance
WebEncoders

Methods

Base64UrlDecode(String, Int32, Char[], Int32, Int32)

Decodes a base64url-encoded input into a byte[].

Base64UrlDecode(String, Int32, Int32)

Decodes a base64url-encoded substring of a given string.

Base64UrlDecode(String)

Decodes a base64url-encoded string.

Base64UrlEncode(Byte[], Int32, Char[], Int32, Int32)

Encodes input using base64url encoding.

Base64UrlEncode(Byte[], Int32, Int32)

Encodes input using base64url encoding.

Base64UrlEncode(Byte[])

Encodes input using base64url encoding.

Base64UrlEncode(ReadOnlySpan<Byte>, Span<Char>)

Encodes input using base64url encoding.

Base64UrlEncode(ReadOnlySpan<Byte>)

Encodes input using base64url encoding.

GetArraySizeRequiredToDecode(Int32)

Gets the minimum char[] size required for decoding of count characters with the Base64UrlDecode(String, Int32, Char[], Int32, Int32) method.

GetArraySizeRequiredToEncode(Int32)

Get the minimum output char[] size required for encoding countBytes with the Base64UrlEncode(Byte[], Int32, Char[], Int32, Int32) method.

Applies to