public class Digest extends Object:
Immutable digest result with both hexadecimal and Base64 views.
import klyn.cryptography
digest = SHA256().digestInfo("hello")
print(digest.hex)
print(digest.base64)| Modifier and Type | Member | Description |
|---|---|---|
| public readonly | algorithmalgorithm as String |
Canonical digest algorithm name. |
| public readonly | base64base64 as String |
Standard Base64 representation. |
| public readonly | hexhex as String |
Lower-case hexadecimal representation. |
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | sizeBitssizeBits as Int: |
Digest size in bits. |
| public readonly property | sizeBytessizeBytes as Int: |
Digest size in bytes. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | Digest | Creates a digest result. |
| Modifier and Type | Member | Description |
|---|---|---|
| public static | fromMap | No summary. |
| public | toBytestoBytes() as Byte[] throws CryptoException: |
Returns the raw digest bytes. |
| public | toMap | Converts this digest result to a serializable map. |
| public override | toStringtoString() as String: |
No summary. |