search for: cipher_text

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

2010 Nov 04
1
Calling a method directly from a test => no method error
...curity on Rails" and can''t get the test to pass. I keep getting "no method error" for decrypt. Can someone help me with the correct "address" for decrypt so I can call it directly. Here is the routine definition: 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 war...