From: Brian Candler Date: 2009-09-01T22:15:00+09:00 Subject: Re: AES encryption between c# and ruby Anth wrote: > On Sep 1, 3:00�pm, Brian Candler wrote: >> >> => 16 >> >> |..........+...,7| >> Brian. >> -- >> Posted viahttp://www.ruby-forum.com/. > > Thanks alot for the clarification. Problem now is that I want the ruby > code to decrypt the c# code (the way the c# code works is the way the > ruby code is supposed to work) but the documentation for this is > horrid, how would I go about decrypting the string I would get from > the c# example (eg rijndael 256 bit blocksize) any idea? Well, you can google for "ruby rijndael", which turns up for example: http://crypt.rubyforge.org/rijndael.html That one's a pure Ruby implementation, so if it works, you'll need to benchmark if it's fast enough for your purposes. Or, you could ask on the openssl mailing list whether Rijndael variants other than the AES-specified ones are available, and if so, how. (However, my reading of 'man enc' suggests they are not) Or, you could try to find some external program which implements this Rijndael variant, and shell out to it from Ruby. Or, you could query why the C# app is using a non-standard variant of Rijndael, and suggest that it move to something more standard. -- Posted via http://www.ruby-forum.com/.