klyn.cryptography.Digest.Digest
constructor

    public Digest(algorithm as String, hex as String, base64 as String):

Description

Creates a digest result.

Parameters

Parameter | Description
--- | ---
`algorithm` | Canonical digest algorithm name.
`hex` | Lower-case hexadecimal digest.
`base64` | Standard Base64 digest.

Example

    import klyn.cryptography

    digest = Digest("SHA-256", "2cf24d...", "LPJZ...")
    print(digest.algorithm)