Encode Base64
Encodes a string to a base64 string.
Simplifier.Util.encodeBase64(string: string): string
Example:
try{ var encoded = Simplifier.Util.encodeBase64("String to encode"); output.b64 = encodedD64; output.message = "Encoding successful"; output.success = true; } catch (e) { output.message = e.message; output.success = false; }
Decode Base64
Decodes a base64 string.
Simplifier.Util.decodeBase64(json: string): string
Example:
try{ var decoded = Simplifier.Util.decodeBase64(encoded); output.b64 = decodedBase64; output.message = "Decoding successful"; output.success = true; } catch (e) { output.message = e.message; output.success = false; }