nimcrypto

repository·master·Indexed 42 days ago

https://github.com/cheatfate/nimcrypto

A cryptographic library for the Nim programming language that implements various popular cryptographic algorithms, used in production environments such as the Nimbus Ethereum client.

Tokens
146
Snippets
2
Records
2
Agent score
3%

What's inside nimcrypto

  1. Use keccak_256 for hashing

    master

    You 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