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?

thanking you....

Novice programmer

Answers


We can implement encryption and decryption algorithm using Ruby On Rails

please find the url for the implementation :-

https://gurudathbn.wordpress.com/2015/02/04/aes-cipher-encryption-decryption-algorithms-using-ruby-on-rails/

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.


Need Your Help

Accepting self signed certificate programmatically from J2ME

java-me https self-signed

I have created self-signed certificate and configured tomcat to use it (Port 443)