👾Crypt Library

Encrypt:

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


Decrypt:

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


Base64 Encode:

<string> crypt.base64.encode(<string> data)  
  • Encodes data with base64.


Base64 Decode:

<string> crypt.base64.decode(<string> data)  
  • Decodes data with base64.


Hash:

<string> crypt.hash(<string> data)
  • Hashes data with SHA-384.


Derive:

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


Random:

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

Last updated