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
| MD5 | SHA1 | SHA2 | SHA3 | BLAKE |
|---|---|---|---|---|
| md5 | sha1 | sha224 | sha3-224 | blake2b |
| sha256 | sha3-256 | blake2s | ||
| sha384 | sha3-384 | |||
| sha512 | sha3-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
| MD5 | SHA1 | SHA2 | SHA3 |
|---|---|---|---|
| md5 | sha1 | sha256 | sha3-224 |
| sha384 | sha3-256 | ||
| sha512 | sha3-384 | ||
| sha3-512 |