WebEncoders.Base64UrlDecode WebEncoders.Base64UrlDecode WebEncoders.Base64UrlDecode Method

Definition

Overloads

Base64UrlDecode(String) Base64UrlDecode(String) Base64UrlDecode(String)

Decodes a base64url-encoded string.

Base64UrlDecode(String, Int32, Int32) Base64UrlDecode(String, Int32, Int32) Base64UrlDecode(String, Int32, Int32)

Decodes a base64url-encoded substring of a given string.

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

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

Base64UrlDecode(String) Base64UrlDecode(String) Base64UrlDecode(String)

Decodes a base64url-encoded string.

public static byte[] Base64UrlDecode (string input);
static member Base64UrlDecode : string -> byte[]
Public Shared Function Base64UrlDecode (input As String) As Byte()

Parameters

input
String String String

The base64url-encoded input to decode.

Returns

Byte[]

The base64url-decoded form of the input.

Remarks

The input must not contain any whitespace or padding characters. Throws FormatException if the input is malformed.

Base64UrlDecode(String, Int32, Int32) Base64UrlDecode(String, Int32, Int32) Base64UrlDecode(String, Int32, Int32)

Decodes a base64url-encoded substring of a given string.

public static byte[] Base64UrlDecode (string input, int offset, int count);
static member Base64UrlDecode : string * int * int -> byte[]
Public Shared Function Base64UrlDecode (input As String, offset As Integer, count As Integer) As Byte()

Parameters

input
String String String

A string containing the base64url-encoded input to decode.

offset
Int32 Int32 Int32

The position in input at which decoding should begin.

count
Int32 Int32 Int32

The number of characters in input to decode.

Returns

Byte[]

The base64url-decoded form of the input.

Remarks

The input must not contain any whitespace or padding characters. Throws FormatException if the input is malformed.

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

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

public static byte[] Base64UrlDecode (string input, int offset, char[] buffer, int bufferOffset, int count);
static member Base64UrlDecode : string * int * char[] * int * int -> byte[]
Public Shared Function Base64UrlDecode (input As String, offset As Integer, buffer As Char(), bufferOffset As Integer, count As Integer) As Byte()

Parameters

input
String String String

A string containing the base64url-encoded input to decode.

offset
Int32 Int32 Int32

The position in input at which decoding should begin.

buffer
Char[]

Scratch buffer to hold the Chars to decode. Array must be large enough to hold bufferOffset and count characters as well as Base64 padding characters. Content is not preserved.

bufferOffset
Int32 Int32 Int32

The offset into buffer at which to begin writing the Chars to decode.

count
Int32 Int32 Int32

The number of characters in input to decode.

Returns

Byte[]

The base64url-decoded form of the input.

Remarks

The input must not contain any whitespace or padding characters. Throws FormatException if the input is malformed.

Applies to