WebEncoders.Base64UrlEncode WebEncoders.Base64UrlEncode WebEncoders.Base64UrlEncode Method

Definition

Overloads

Base64UrlEncode(Byte[]) Base64UrlEncode(Byte[]) Base64UrlEncode(Byte[])

Encodes input using base64url encoding.

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

Encodes input using base64url encoding.

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

Encodes input using base64url encoding.

Base64UrlEncode(Byte[]) Base64UrlEncode(Byte[]) Base64UrlEncode(Byte[])

Encodes input using base64url encoding.

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

Parameters

input
Byte[]

The binary input to encode.

Returns

The base64url-encoded form of input.

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

Encodes input using base64url encoding.

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

Parameters

input
Byte[]

The binary input to encode.

offset
Int32 Int32 Int32

The offset into input at which to begin encoding.

count
Int32 Int32 Int32

The number of bytes from input to encode.

Returns

The base64url-encoded form of input.

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

Encodes input using base64url encoding.

public static int Base64UrlEncode (byte[] input, int offset, char[] output, int outputOffset, int count);
static member Base64UrlEncode : byte[] * int * char[] * int * int -> int
Public Shared Function Base64UrlEncode (input As Byte(), offset As Integer, output As Char(), outputOffset As Integer, count As Integer) As Integer

Parameters

input
Byte[]

The binary input to encode.

offset
Int32 Int32 Int32

The offset into input at which to begin encoding.

output
Char[]

Buffer to receive the base64url-encoded form of input. Array must be large enough to hold outputOffset characters and the full base64-encoded form of input, including padding characters.

outputOffset
Int32 Int32 Int32

The offset into output at which to begin writing the base64url-encoded form of input.

count
Int32 Int32 Int32

The number of bytes from input to encode.

Returns

The number of characters written to output, less any padding characters.

Applies to