-
Notifications
You must be signed in to change notification settings - Fork 1
Cryptography functions
Oswaldo Baptista Vicente Junior edited this page Jan 10, 2023
·
2 revisions
Computes the SHA-256 hash of the given string and transforms the binary result into a hexadecimal lower case string.
sha256("hello") //result: "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
Encodes the specified string using the Base64 encoding scheme.
toBase64("myMessage") //result: "bXlNZXNzYWdl"
Decodes a Base64 encoded string.
fromBase64("bXlNZXNzYWdl") //result: "myMessage"