klyn.cryptography.MessageDigest.digestFileInfo
method
public digestFileInfo(path as Object) as Digest throws CryptoException:
Description

Hashes a file and returns a structured digest view.

Parameters
ParameterDescription
pathFile path as String or Path.
Returns

Structured digest result.

Throws
  • CryptoException when the path or algorithm is invalid.
Example
import klyn.cryptography

md = SHA256()
digest = md.digestFileInfo("README.md")
print(digest.hex)