cleanup, docs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user