public digestFileInfo(path as Object) as Digest throws CryptoException:
Hashes a file and returns a structured digest view.
| Parameter | Description |
|---|---|
path | File path as String or Path. |
Structured digest result.
import klyn.cryptography
md = SHA256()
digest = md.digestFileInfo("README.md")
print(digest.hex)