Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​AspNetCore.​Authentication.​Base64UrlTextEncoder
Assembly: Microsoft.AspNetCore.Authentication
Inheritance: object → Base64UrlTextEncoder
Allows encoding and decoding base-64 url encoded text.
Methods
public static
string
Encode​(byte[] data)
Encodes supplied data into Base64 and replaces any URL encodable characters into non-URL encodable
characters.
Returns Base64 encoded string modified with non-URL encodable characters
data
Data to be encoded.
public static
byte[]
Decode​(string text)
Decodes supplied string by replacing the non-URL encodable characters with URL encodable characters and
then decodes the Base64 string.
Returns The decoded data.
text
The string to be decoded.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object