Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Encrypts and decrypts data of arbitrary length using RSA cyphers. Fixed and much faster fork of "crypto64" Ruby gem.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.document
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
VERSION
block64.gemspec

README.md

block64

Block64 is a replacement for original crypto64 gem. It can encrypt and decrypt data of arbitrary length by RSA public/private key. It's fixed for use with latest Ruby and much faster than original.

Usage

API is trivial and usage is simple:

require "block64"

key = OpenSSL::PKey::RSA::new(<pem-encoded-key>)
encoded = key.encrypt64(<some-very-long-message>)
decoded = key.decrypt64(encoded)

Contributing

  1. Fork it.
  2. Create a branch (git checkout -b 20101220-my-change).
  3. Commit your changes (git commit -am "Added something").
  4. Push to the branch (git push origin 20101220-my-change).
  5. Create an Issue with a link to your branch.
  6. Enjoy a refreshing Diet Coke and wait.

Copyright

Copyright © 2007 Bart Teeuwisse and © 2010 - 2011 Martin Kozák. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.