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

- text Optional final UTF-8 chunk.

Returns

Raw digest bytes.

Throws

- CryptoException when hashing fails. ```klyn import klyn.cryptography md = SHA256() digest = md.digest("hello") print(digest.size) ```