Clojure library which has only one method that signs string with RSA private key.
Library is heavily inspired by this blog post on public key cryptography.
[rsa-signer "0.1.0"]
user=> (use 'rsa-signer.core)
null
user=> (sign "some-string-to-sign" "/Users/podviaznikov/.ssh/id_rsa" "SHA1withRSA")
#<byte[] [B@40914272>
There are 3 options that you can pass as last parameter(algorithm) to this function:
- RSA - that means that input string will be signed directly with RSA private key.
- SHA1withRSA - that means than input string will be hashed using SHA-1 and than signed with RSA private key.
- SHA256withRSA - that means than input string will be hashed using SHA-1 and than signed with RSA private key.
We love contributions. Please submit your pull requests.
Copyright © 2013 Hashobject Ltd (team@hashobject.com).
Distributed under the Eclipse Public License.