Serializes a string to a base64 encoded string.
Useful for safely storing strings that may contain special characters.
First URI encodes the string, then base64 encodes it.
Parameters
data: string
The string to serialize
Returns string
A base64 encoded string that can be safely stored/transmitted
Serializes a string to a base64 encoded string. Useful for safely storing strings that may contain special characters. First URI encodes the string, then base64 encodes it.