From: "Aaron D. Gifford" Date: 2010-04-21T07:33:54+09:00 Subject: Re: AES decrypt without PKCS padding? On Tue, Apr 20, 2010 at 4:46 AM, Brian Candler wrote: ... > I think the equivalent in Ruby is this: > >>> OpenSSL::Cipher::AES.instance_methods.grep(/pad/i) > => ["padding="] Thank you, that was exactly what I needed and it works perfectly for my data: def decrypt_aes_256_cbc(key, iv, ciphertext) aes = OpenSSL::Cipher::AES.NEW('256-CBC') aes.decrypt aes.padding = 0 aes.key = key aes.iv = iv aes.update(ciphertext) + aes.final end Aaron out.