Hash
On this page:
2.1 MD5
md5-hex
md5-bytes
md5-file-hex
md5-file-bytes
2.2 SHA-1
sha1-bytes
2.3 SHA-256
sha256

2 Hash

Various cryptography hash functions.

2.1 MD5

 (require grommet/crypto/hash/md5) package: grommet

procedure

(md5-hex array)  Bytes

  array : (U String Bytes Input-Port)

procedure

(md5-bytes array)  Bytes

  array : (U String Bytes Input-Port)
Typed wrappers around the MD5 procedures in file/md5 in untyped Racket.

procedure

(md5-file-hex fname)  Bytes

  fname : Path

procedure

(md5-file-bytes fname)  Bytes

  fname : Path
Typed wrappers around the MD5 procedures in file/md5 in untyped Racket except takes the path to a file on the file system

2.2 SHA-1

 (require grommet/crypto/hash/sha1) package: grommet

procedure

(sha1-bytes bytes)  Bytes

  bytes : Bytes
Typed wrapper around sha1-bytes procedure provided by Racket’s openssl/sha1.

2.3 SHA-256

Pure Typed Racket implementation of SHA-256.

procedure

(sha256 data)  Bytes

  data : (U Bytes String)
Hash the given data using SHA-256 algorithm.