crypt.hmac, not here.
Parameters
string
required
The string to digest.
string
required
The hash algorithm, e.g. “sha256”.
Returns
string
The hex digest.
Example
Errors
Related
hmac: a keyed digest.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hash a string.
crypt.hash(data: string, algorithm: string) -> string
crypt.hmac, not here.
print(crypt.hash("hello", "sha256"))
| Message | Condition |
|---|---|
argument 1 must be the string to digest | Argument 1 was not a string. |
that hash algorithm is not supported | The algorithm name was not recognized. |
that algorithm has no keyed mode here, use crypt.hmac | A keyed algorithm was requested; use hmac. |
the hash provider rejected the input | The provider could not hash the input. |
hmac: a keyed digest.