Displaying 1 result from an estimated 1 matches for "thoracic1".
2010 Nov 04
1
Calling a method directly from a test => no method error
...ts))
decoded_cipher_text = Base64.decode64(cipher_text)
#cipher.decrypt(key, decoded_cipher_text.slice!(0..15))
cipher.decrypt
cipher.pkcs5_keyivgen(key)
# DW 11/3/10 Above two lines per deprecation warning and
stackoverflow site
# TODO Use a real Salt instead of Thoracic1
out = cipher.update(decoded_cipher_text)
out << cipher.final
end
end
end
Here is the "after save" hook:
module Encryptor
module ActiveRecord
class Encryptor
include ::Encryptor::Routines
def after_save(model)
unless model[@field].blank...