Digest
classin packageklyn.cryptography
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)
Fields
| Modifier and Type |
Member |
Description |
| public readonly |
algorithm |
Canonical digest algorithm name. |
| public readonly |
base64 |
Standard Base64 representation. |
| public readonly |
hex |
Lower-case hexadecimal representation. |
Properties
| Modifier and Type |
Member |
Description |
| public readonly property |
sizeBits |
Digest size in bits. |
| public readonly property |
sizeBytes |
Digest size in bytes. |
Constructors
| Modifier and Type |
Member |
Description |
| public |
Digest |
Creates a digest result. |
Methods
| Modifier and Type |
Member |
Description |
| public static |
fromMap |
No summary. |
| public |
toBytes |
Returns the raw digest bytes. |
| public |
toMap |
Converts this digest result to a serializable map. |
| public override |
toString |
No summary. |