klyn.cryptography.MessageDigest.digest
method

    public digest(text as String = null) as Byte[] throws CryptoException:

Description

Hashes the buffered text and an optional final chunk.

The internal buffer is cleared after the digest is produced.

Parameters

Parameter | Description
--- | ---
`text` | Optional final UTF-8 chunk.

Returns

Raw digest bytes.

Throws

- CryptoException when hashing fails.

Example

    import klyn.cryptography

    md = SHA256()
    digest = md.digest("hello")
    print(digest.size)