klyn.cryptography.MessageDigest.digestInfo
method
public digestInfo(text as String = null) as Digest throws CryptoException:
Description

Hashes the buffered text and returns a structured digest view.

The internal buffer is cleared after the digest is produced.

Parameters
ParameterDescription
textOptional final UTF-8 chunk.
Returns

Structured digest result.

Throws
  • CryptoException when hashing fails.
Example
import klyn.cryptography

md = SHA256()
digest = md.digestInfo("hello")
print(digest.hex)