From: Vance Heron Date: 2004-04-17T07:10:00+09:00 Subject: Re: openssl ciphers - Success Sorry about the bad form replying to myself, but have found the answer I needed ... The ruby code that works is: des = OpenSSL::Cipher::Cipher.new("DES-ECB") des.encrypt(nil, 0) des.key=key1 res1 = des.update(magic) The encrypt method hashes the password to generate a key (not what I needed), and supplies an IV if the 2nd argument is nil (also not what I needed). For a 2nd encryption, I do a des.reset after the des.update. V