cleanup, docs

This commit is contained in:
root
2026-06-16 23:02:45 +00:00
parent ea08d5f28b
commit b8b56cf3dd
160 changed files with 1076 additions and 511 deletions
+12 -4
View File
@@ -1,10 +1,18 @@
# sha256_hex
:sig
String sha256_hex(String data)
:params
data : bytes to hash
return value : the SHA-256 digest as a 64-character lowercase hex string
Returns the lowercase hexadecimal SHA-256 digest for `data`.
:content
Returns the SHA-256 digest of `data` as hex text. Use it for checksums, cache keys, and content fingerprints where you want a printable digest. For the raw 32-byte digest use `sha256()`.
:example
print(sha256_hex("hello"), "\n");
print(sha256_hex("abc"), "\n");
:see
>noise
>sys
sha256
hmac_sha256_hex
gen_sha1