klyn.cryptography.Digest.toBytes
method
public toBytes() as Byte[] throws CryptoException:
Description
Returns the raw digest bytes.
import klyn.cryptography

data = SHA256().digestInfo("hello").toBytes()
print(data.size)
Returns
Fixed-size byte array.
Throws
  • CryptoException when the hexadecimal representation is invalid. ```klyn import klyn.cryptography data = SHA256().digestInfo("hello").toBytes() print(data.size) ```