Encryption with Ruby on Rails app
I'm doing an application in Ruby on Rails, version 3.0.10, where i'm allowing users to upload their own files, docs, pds etc and storing them in sqlite.
Does anyone know if i can use attr_encryted from https://github.com/shuber/attr_encrypted to encrypt all uploaded data?
We can implement encryption and decryption algorithm using Ruby On Rails
please find the url for the implementation :-
example:- Encryption:- irb(main):007:0> AesEncryptDecrypt.encryption(‘gurudath’) => “rUPKObydUJd9cY9agm3Glw==\n”
Decryption:- irb(main):008:0> AesEncryptDecrypt.decryption(‘rUPKObydUJd9cY9agm3Glw==’) => “gurudath”
You sure can.
I recommend the more secure version though.