You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a Ruby port of Rob Napier's Cocoa RNCryptor library. Like RNCryptor, Ruby RNCryptor intends to be an easy-to-use class that correctly handles random initialization vectors, password stretching with PBKDF2, and HMAC verification.
This port is based on his Data Format wiki page. It currently implements version 2 and version 3.
Usage Example:
require'./lib/ruby_rncryptor'require"base64"password="n3v3r gue55!!"encrypted=RubyRNCryptor.encrypt("This is a tiny bit of text to encrypt",password)putsBase64.encode64(encrypted)puts"Decrypting..."decrypted=RubyRNCryptor.decrypt(encrypted,password)putsdecrypted
Release Notes
2017-04-01 - version 3.0.2
Fixed for OpenSSL deprecation warning.
2016-01-25 - version 3.0.1
Addressed a timing attack vulnerability by making the HMAC comparison constant time.
Updated the tests to use the newer rspec expect syntax.
2013-12-20 - version 3.0
Generates version 3 file format files by default.
Made a gemspec for this library, version 3.0 for file format version 3.
Decrypts files encrypted with a bug in the Cocoa version where multibyte passwords were truncated.