👾Crypt

Base64 Decode

<string> base64_decode(<string> data)  
  • Decodes data with base64.


Base64 Encode

<string> base64_encode(<string> data)  
  • Encodes data with base64.


Decrypt

<string> crypt.decrypt(<string> data, <string> key)  
  • Decrypts data with key.


Derive

<string> crypt.derive(<string> value, <uint> length)
  • Derives a secret key from value with the length of length.


Encrypt

<string> crypt.encrypt(<string> data, <string> key)  
  • Encrypts data with key.


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 data with SHA-384.


LZ4 Compress

<string> lz4_compress(<string> data)
  • Compresses data using lz4.


LZ4 Decompress

<string> lz4_decompress(<string> data)
  • Decompresses data using lz4.


Random

<string> crypt.random(<uint> size)
  • Generates a random string with size (cannot be negative or exceed 1024).


Last updated