Nim cryptographic library
Go to file
Eugene Kabanov b41129f955
Refactor sysrand to remove `result` usage and fix style check issues. (#57)
* Refactor sysrand to remove `result` usage and fix style check issues.

* Fix duplicated imports.
2022-07-05 15:33:37 +03:00
.github/workflows Use Github Actions instead of Travis & Appveyor. (#52) 2021-06-19 02:28:08 +03:00
docs Fix hash in documentation 2019-11-02 20:37:01 -07:00
examples use "openArray" instead of "openarray" for stylecheck (#55) 2022-07-05 13:33:21 +03:00
nimcrypto Refactor sysrand to remove `result` usage and fix style check issues. (#57) 2022-07-05 15:33:37 +03:00
tests use "openArray" instead of "openarray" for stylecheck (#55) 2022-07-05 13:33:21 +03:00
.gitignore refactor test suite execution to reduce duplication 2019-01-18 16:17:02 +01:00
.travis.yml Fix Nim v1.0.x compilation problems (#47) 2020-09-07 17:51:33 +03:00
LICENSE Initial commit 2018-03-11 11:43:12 +02:00
README.md Use Github Actions instead of Travis & Appveyor. (#52) 2021-06-19 02:28:08 +03:00
appveyor.yml Fix Nim v1.0.x compilation problems (#47) 2020-09-07 17:51:33 +03:00
nimcrypto.nim Add SHA1 digest and tests. 2019-03-02 17:43:44 +02:00
nimcrypto.nimble enable --gc:orc testing (#49) 2021-02-25 18:52:26 +02:00

README.md

nimcrypto

Github action

Nim cryptographic library

Nimcrypto is Nim's cryptographic library. It implements several popular cryptographic algorithms and their tests with some examples.

Most notably, this library has been used in the Nimbus Ethereum client. To see the implementation, check out its Github repository.

The most basic usage

nimble install nimcrypto # installation
# example.nim
import nimcrypto

echo keccak_256.digest("Alice makes a hash") 
# outputs F8AE86DA35CF3D9F0816BAA6015A6AFFD20BA5D6A533FEA94D89D6164264326F

See full documentation here.