ascent.encode
Encoding methods for data in Ascent
ascent.encode.base64()
Encodes a string in base64 format.
Parameter
Type
Description
string
string
Value to encode
Examples
To base64-encode the username
ascent.encode.gzip()
Compress a string using Gzip. Output a base64 encoded string
Parameter
Type
Description
string
string
Value to encode
Examples
To encode the username
ascent.encode.uri()
Encodes a string using URI encoding
Parameter
Type
Description
string
string
Value to encode
Examples
To encode the username
Ascent.encode.hex
Encodes a string in Hexadecimal format.
Parameter
Type
Description
string
string
Value to encode
Examples
To encode the username
Last updated
Was this helpful?