No commit activity in last 3 years
No release in over 3 years
encrypt/decrypt strings for The!ProfitCMS
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 0

Runtime

~> 1.3
 Project Readme

TheEncryptedString

"hello world".to_the_encrypted # => "P4h27bEUQV8Iw60BrHxH7A=="

"P4h27bEUQV8Iw60BrHxH7A==".to_the_decrypted # => "hello world"

Settings into your App

config/initializers/the_encrypted_string.rb

Encryptor.default_options.merge!(
  algorithm: 'aes-128-cbc',
  key:  'this KEY  should be redefined into your App',
  salt: 'this SALT should be redefined into your App',
  iv:   'this INIT VECTOR should be redefined into your App'
)

MIT

Ilya Zykin, 2014