Install nimcrypto via nimble
masterTo install the nimcrypto library, use the Nim package manager, nimble.
nimble install nimcryptorepository·master·Indexed 42 days ago
https://github.com/cheatfate/nimcryptoA cryptographic library for the Nim programming language that implements various popular cryptographic algorithms, used in production environments such as the Nimbus Ethereum client.
To install the nimcrypto library, use the Nim package manager, nimble.
nimble install nimcryptoYou can use the keccak_256.digest method to compute a Keccak-256 hash of a string. Ensure you import nimcrypto in your Nim file.
import nimcrypto
echo keccak_256.digest("Alice makes a hash")
# outputs F8AE86DA35CF3D9F0816BAA6015A6AFFD20BA5D6A533FEA94D89D6164264326F