public
Description: Tiny Encryption Algorithm in pure Ruby
Homepage:
Clone URL: git://github.com/sprsquish/crypt--xxtea.git
sprsquish (author)
Wed Oct 14 15:19:34 -0700 2009
commit  cc2a256accc7df22fc48bc4fc549f65257f12379
tree    0182cbf81b8f430e57aeeaab16249d1521ed2e93
parent  873cb0f18883c06ff935fe64c0883ea334486a11
name age message
file .gitignore Fri Jun 05 13:35:11 -0700 2009 switch to jeweler [sprsquish]
file History.txt Wed May 27 17:59:30 -0700 2009 fixed loop to be ruby 1.9 compliant [jyzhang]
file Manifest.txt Mon Apr 14 13:22:47 -0700 2008 minor stuffs [sprsquish]
file README.rdoc Fri Jun 05 13:35:49 -0700 2009 update README [sprsquish]
file Rakefile Wed Oct 14 15:19:26 -0700 2009 update Jeweler stuffs [sprsquish]
file VERSION Fri Jun 05 13:42:42 -0700 2009 Version bump to 1.3.0 [sprsquish]
directory bin/ Thu Apr 03 15:50:38 -0700 2008 formatting preference [sprsquish]
file crypt-tea.gemspec Wed Oct 14 15:19:34 -0700 2009 Regenerated gemspec for version 1.3.0 [sprsquish]
directory lib/ Fri Jun 05 13:40:41 -0700 2009 Update for documentation. dup incoming strings ... [sprsquish]
directory test/ Fri Jun 05 13:40:41 -0700 2009 Update for documentation. dup incoming strings ... [sprsquish]
README.rdoc

Crypt::XXTEA

DESCRIPTION:

  An implementation of the Tiny Encryption Algorithm that's compatible with PHP's xxTEA

INSTALL:

  • sudo gem install crypt-tea

USAGE:

  require 'rubygems'
  require 'crypt-tea'
  key = Crypt::XXTEA.new('super secret key')
  plaintext = 'some text that needs to be encrypted'
  cyphertext = key.encrypt(plaintext)
  key.decrypt(cyphertext) == plaintext

LICENSE:

(The MIT License)

Copyright © 2008 Jeff Smick

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.