Skip to content

vow-crypto

vow-crypto hashes data deterministically and generates salted passwords with the Rand grant. Install with vpm:

Terminal window
curl -fsSL https://install.vowlang.dev | sh
export PATH="$HOME/.local/bin:$PATH"
vpm add vow-crypto
vpm install
import vcrypto from vow_crypto
fn main(caps: Caps) -> int {
assert vcrypto.hash_data("x") == "hash:x";
return match caps.rand {
Some(cap) => with cap { len(vcrypto.hash_password("p", cap)) },
None => 0 - 1,
};
}
Terminal window
cd vow-libs/vow-crypto && vow test tests/crypto.vow -- --grant rand