Clojure wrapper for Bouncy Castle
The library lives under
bouncycastle and is divided into the following namespaces and functions:
Digests such as
whirepool. All functions expect an byte-array as input and return a new byte-array as output. Have a look at the tests to see how these functions work.
HMAC implementation based on the digests defined above. Again all functions operate on byte-arrays. Take a look at the tests for details.
Provides functions to encode byte-arrays into a
(generate-key) to generate a symmetric key and
(generate-keypair) to generate a public/private key-pair. Both need an algorithm name and optionally the key-strength in bit and optionally a source of randomness. The tests show how to use the function.
<dependencies> <dependency> <groupId>com.github.sebhoss</groupId> <artifactId>bc-clj</artifactId> <version>[2.0.0,3.0.0)</version> </dependency> </dependencies>
This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
In case you’re looking for something else, try: