Skip to content

TheProfitCMS/the_encrypted_string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The Encrypted String

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages