Sha256: b5e1c056e414c9261eadfe07dc09d0fc6633ac0faa22141445b52ac0887990d9
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
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: http://code.google.com/p/keyczar/downloads/list For now, we assume that keyczar-cpp was installed with the prefix /usr/local. You should be able to install it with these commands: $ cd keyczar-cpp/src $ sh ./tools/swtoolkit/hammer.sh --mode=opt-linux --compat $ sh ./tools/swtoolkit/hammer.sh --mode=opt-linux --compat install replace opt-linux above by opt-bsd or opt-mac depending on your system 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. == Installation Simple: $ gem install keyczar_ruby For bundler, add it to your Gemfile and run $ bundle install
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
keyczar_ruby-0.0.3 | README.rdoc |
keyczar_ruby-0.0.2 | README.rdoc |