Crypt  :: pure-ruby cryptographic cyphers

The Crypt library is a pure-ruby implementation of a number of popular encryption algorithms. Block cyphers currently available include Blowfish, GOST, IDEA, and Rijndael (AES). Cypher Block Chaining (CBC) has been implemented.

Crypt is written entirely in ruby so deployment is simple - no platform concerns, no library dependencies, nothing to compile.

Performance is what you would expect from a pure-ruby implementation: it is adequate for shorter messages but I wouldn't try to encrypt my whole disk with it. If performance is critical then you might want to try ezcrypto's interface to OpenSSL.


Version 2.2.0 released

This release fixes a sporadic decryption defect in IDEA. Tests were converted to specs and expanded.

Version 2.0 released

This release upgrades the code to work with ruby 2.0 and unicode strings.

Version 1.1.4 released

Thanks to some prodding from users of this library, we are pleased to announce that version 1.1.4 has been released (available on the Download page). This release includes a fix to Blowfish and more thorough unit tests for all cyphers.

Version 1.0 released

The project has been registered and version 1.0 released (go to Download page). The code is classified as beta - it appears to work but has not yet been extensively tested against the published reference tests. Release 1.1 will include more thorough test suites.