EasyAES is a simple gem for easily using encryption and deryption with AES algorithm.
EasyAES can generate the secret with:
EasyAES.generate_secret
Data is encrypted with EasyAES.encrypt data, secret
and decrypted with EasyAES.derypt data, secret
Generated secret and encrypted data is Base64
encoded so it can easily be stored to a file or database.
Also the secret that both encrypt
and decrypt
are getting are Base64
encoded yaml
serialization of array [key, iv] (generate_secret
generates in that that format already)
Add this line to your application's Gemfile:
gem 'easy_aes'
And then execute:
$ bundle
Or install it yourself as:
$ gem install easy_aes
TODO: Write usage instructions here
- Fork it ( https://github.com/[my-github-username]/easy_aes/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request