Cryptography and hashing routines.
Cryptography and hashing routines.
string Crypto::Sha1(const string&in str)
Calculate the SHA1 hash of the given string.
string string Crypto::Sha256(const string&in str)
Calculate the SHA256 hash of the given string.
string string Crypto::Sha512(const string&in str)
Calculate the SHA512 hash of the given string.
string MemoryBuffer@ Crypto::Random(int length)
Generates cryptographically secure random bytes and returns the buffer.
MemoryBuffer@ string Crypto::RandomBase64(int length, bool url = false)
Generates cryptographically secure random bytes and returns its base64 string.
string