search for: pkcs5_keyivgen

Displaying 1 result from an estimated 1 matches for "pkcs5_keyivgen".

2010 Nov 04
1
Calling a method directly from a test => no method error
...efinition: module Encryptor module Routines def decrypt(cipher_text, key, opts) cipher = OpenSSL::Cipher::Cipher.new(algorithm(opts)) 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 mo...