July 26, 2006
New early signature support in EzCrypto
Posted by pelleb at July 26, 2006 02:09 PM
| TrackBack
I’ve started implementing Digital Signature support in EzCrypto. It is pretty early stage yet but my proof of concept unit tests are working.
The aim is to have 2 easy to use classses:
- Signer
- Verifier
They both will have a few simple static methods like in EzCrypto for generation and loading of Private/Public keys. Otherwise Signer has a sign(data) method and Verifier a verify(sig,data) method. All the other stuff such as certificates and whatever I aim to hide within the code.
A sample of code would be:
signer=EzCrypto::Signer.from_file "testsigner.pem"
sig=signer.sign "I promise to obey this"
verifier=signer.verifier
assert sig.verify sig, "I promise to obey this"
Keep an eye on this space for more.
This entry was posted in the following Categories: Crypto & Security , Ruby
Comments
Post a comment