public digestFile(path as Object) as Byte[] throws CryptoException:
Hashes a file from a String or Path value.
| Parameter | Description |
|---|---|
path | File path as String or Path. |
Raw digest bytes.
import klyn.cryptography
md = SHA256()
digest = md.digestFile("README.md")
print(digest.size)