<string> crypt.encrypt(<string> data, <string> key)
<string> crypt.decrypt(<string> data, <string> key)
<string> crypt.base64.encode(<string> data)
- Encodes
data
with base64.
<string> crypt.base64.decode(<string> data)
- Decodes
data
with base64.
<string> crypt.hash(<string> data)
- Hashes
data
with SHA-384.
<string> crypt.derive(<string> value, <uint> length)
- Derives a secret key from
value
with the length of length
.
<string> crypt.random(<uint> size)
- Generates a random string with
size
(cannot be negative or exceed 1024).