syn.crypt.custom

Functions

encrypt

string syn.crypt.custom.encrypt(cipher: string, data: string, key: string, iv: string)

Encrypts data with key using selected cipher and iv/nonce.

decrypt

string syn.crypt.custom.decrypt(cipher: string, data: string, key: string, iv: string)

Decrypts ciphertext with key using selected cipher and iv/nonce.

hash

string syn.crypt.custom.hash(cipher: string, data: string)

Hashes data with algorithm.

Custom Hashing Algorithms

MD5SHA1SHA2SHA3BLAKE
md5sha1sha224sha3-224blake2b
sha256sha3-256blake2s
sha384sha3-384
sha512sha3-512

hmac

string syn.crypt.custom.hmac(cipher: string, data: string, key: string)

Creates a HMAC signature from data and key with algorithm.

Custom HMAC Algorithms

MD5SHA1SHA2SHA3
md5sha1sha256sha3-224
sha384sha3-256
sha512sha3-384
sha3-512