👾Crypt
Base64 Decode
<string> base64_decode(<string> data) Decodes
datawith base64.
Alternative:
base64decode
Base64 Encode
<string> base64_encode(<string> data) Encodes
datawith base64.
Alternative:
base64encode
Decrypt
<string> crypt.decrypt(<string> data, <string> key) Decrypts
datawithkey.
Derive
<string> crypt.derive(<string> value, <uint> length)Derives a secret key from
valuewith the length oflength.
Encrypt
<string> crypt.encrypt(<string> data, <string> key) Encrypts
datawithkey.
Generate Bytes
<string> crypt.generatebytes(<string> value)Generates random bytes based off
value.
Generate Key
<string> crypt.generatekey(<string> value)Generates a random key based off
value.
Hash
<string> crypt.hash(<string> data)Hashes
datawith SHA-384.
LZ4 Compress
<string> lz4_compress(<string> data)Compresses
datausing lz4.
LZ4 Decompress
<string> lz4_decompress(<string> data)Decompresses
datausing lz4.
Random
<string> crypt.random(<uint> size)Generates a random string with
size(cannot be negative or exceed 1024).
Last updated