crypto
Crypto is Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
crypto.FNV32a
FNV32a hashes using fnv32a algorithm
crypto.HMAC
(h any, k any, m any, e …any) → string
HMAC returns a cryptographic hash that uses a key to sign a message.
Aliases: hmac
Examples
{{ hmac "sha256" "Secret key" "Hello world, gophers!" }}
b6d11b6c53830b9d87036272ca9fe9d19306b8f9d8aa07b15da27d89e6e34f40
crypto.MD5
MD5 hashes the given input and returns its MD5 checksum.
Aliases: md5
Examples
{{ md5 "Hello world, gophers!" }}
b3029f756f98f79e7f1b7f1d1f0dd53b
{{ crypto.MD5 "Hello world, gophers!" }}
b3029f756f98f79e7f1b7f1d1f0dd53b
crypto.SHA1
SHA1 hashes the given input and returns its SHA1 checksum.
Aliases: sha1
Examples
{{ sha1 "Hello world, gophers!" }}
c8b5b0e33d408246e30f53e32b8f7627a7a649d4
crypto.SHA256
SHA256 hashes the given input and returns its SHA256 checksum.
Aliases: sha256
Examples
{{ sha256 "Hello world, gophers!" }}
6ec43b78da9669f50e4e422575c54bf87536954ccd58280219c393f2ce352b46