public digest(text as String = null) as Byte[] throws CryptoException:
Hashes the buffered text and an optional final chunk.
The internal buffer is cleared after the digest is produced.
| Parameter | Description |
|---|---|
text | Optional final UTF-8 chunk. |
Raw digest bytes.
import klyn.cryptography
md = SHA256()
digest = md.digest("hello")
print(digest.size)