A ruby interface to the keyczar crypto library. Provides basic encrypt, decrypt, sign and verify methods.
This is just a wrapper around the c++ version of keyczar. You will need keyczar-cpp in order to use it. Find keyczar-cpp here:
code.google.com/p/keyczar/downloads/list
For now, we assume that keyczar-cpp was installed with the prefix /usr/local.
Methods:
Keyczar::Crypter#encrypt(plaintext) #=> cryptext Keyczar::Crypter#decrypt(cryptext) #=> plaintext Keyczar::Signer#sign(text) #=> signature Keyczar::Signer#verify(text,signature) #=> true or false
The first 3 return empty string on error. #encrypt and #sign results are base64 encoded.