A cryptographic library based on 'OpenSSL'.
This module provides a cryptographic library based on OpenSSL.
Add Crypto as a Mason dependency:
mason add Crypto@0.2.0use Crypto;
var sha = new Hash(Digest.SHA256);
var buf = new CryptoBuffer(b"Hello, World!");
var digest = sha.getDigest(buf);
writeln(digest.toHexString());See Mason.toml.