Helper methods to encode and decode Base64 strings.
let s = "My String";let encoded = Base64.encode(s);let decoded = Base64.decode(encoded); Copy
let s = "My String";let encoded = Base64.encode(s);let decoded = Base64.decode(encoded);
Static
Base64 decode a string.
the string to decode
Base64 encode a string.
the string to encode
Helper methods to encode and decode Base64 strings.
Example