Crypt
Encryption, hashing, HMAC and random data. Entries: 7.
- crypt.decryptDecrypts base64 text made by crypt.encrypt and returns the original string.
string - crypt.encryptEncrypts a string with AES and returns the result as base64.
string - crypt.generatebytesReturns the given number of random bytes, base64 encoded.
string - crypt.generatekeyReturns a new random key, base64 encoded. Decoded it is 32 bytes long, and no two calls give the same key.
string - crypt.hashHashes a string and returns the digest as hexadecimal text.
string - crypt.hmacReturns the HMAC of a string under a secret key, base64 encoded.
string - crypt.randomReturns a string of the given length made of random characters.
string