Module: MySQLEncryption
- Included in:
- MySQLEncryptor
- Defined in:
- lib/attr_encryption/mysql_encryption.rb
Instance Method Summary collapse
Instance Method Details
#mysql_decrypt(s, key = $encryption_key) ⇒ Object
10 11 12 13 |
# File 'lib/attr_encryption/mysql_encryption.rb', line 10 def mysql_decrypt(s, key=$encryption_key) return nil if s.blank? do_decrypt(s, mysql_key(key)) end |
#mysql_encrypt(s, key = $encryption_key) ⇒ Object
5 6 7 8 |
# File 'lib/attr_encryption/mysql_encryption.rb', line 5 def mysql_encrypt(s, key=$encryption_key) return nil if s.blank? do_encrypt(s, mysql_key(key)) end |