Loading...
If the page contents do not appear, it may mean that JavaScript is disabled in your browser. Please enable JavaScript to view this.
Aaron's encryption/decryption Ruby scriptFileSafe Photo: St. George Temple in WinterIPv4You are not logged in. Click here to log in. | |
FileSafe -- A simple Ruby script for encrypting/decrypting files using 256-bit AES and a master key derived from a password/passphrase via the PBKDF2 function.I wrote this script for use on several systems where I needed to regularly encrypt/decrypt one or more files using a password or passphrase. The method used should be reasonably secure for the uses I required. I have NOT adapted the script (yet) for non-POSIX environments (Windows) however. This script was written and tested using Ruby 1.9.x. No attempts to adapt or test it under earlier Ruby versions were made. It requires/relies on: OpenSSL (encryption/HMAC/hash algorithms), securerandom (cryptographically secure random data), the pbkdf2 gem (for the password-based key derivitive function PBKDF2), the highline gem (for reading a password/passphrase from a terminal), and tempfile for temporary file creation. Latest VersionThe latest version is version 3.0.0 released on 29 Oct. 2011. You can download the latest gem (3.0.0) here: SHA256 and MD5 sums of the gem are:
You may view the source code here: LicenseThis utility script and related library and test files in the gem are licensed under an MIT-style license. (See the LICENSE.txt file.) Report BugsPlease report bugs by going to the author's web site and clicking on the "Contact Me" link in the left-hand menu. The direct URL is: Thank you! -- Aaron D. Gifford | |
Copyright © 1993-2012 - Aaron D. Gifford - All Rights Reserved | |