Based off a great tutorial at: http://tutorialzine.com/2013/11/javascript-file-encrypter/ 
Uses AES encryption by cryptojs: https://code.google.com/p/crypto-js/

This is the same https://github.com/izotope115/JS_Encryption_App but integrated into Rails.