No matching definitions.

tur/digest-string

stdlib/digest-string.tur

owned String siblings for the tur/digest hex digests.

Since: v2 (string-adoption-stdlib-plan, batch 2)

defn

digest/sha256-string

(digest/sha256-string [data : int len : int] :)

SHA-256 of a byte buffer as a lowercase-hex String.

datapointer (as :int) to the byte data
lennumber of bytes to hash

An owned String of 64 lowercase hex characters, safe to store or key a map.

(string/to-cstr (digest/sha256-string 0 0))
  ; => "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"

Since: v2

defn

digest/md5-string

(digest/md5-string [data : int len : int] :)

MD5 of a byte buffer as a lowercase-hex String.

datapointer (as :int) to the byte data
lennumber of bytes to hash

An owned String of 32 lowercase hex characters, safe to store or key a map.

(string/to-cstr (digest/md5-string 0 0))  ; => "d41d8cd98f00b204e9800998ecf8427e"

Since: v2