From: John W Higgins Date: 2009-09-02T01:09:50+09:00 Subject: Re: AES encryption between c# and ruby --001485e76f16ee8c55047286600a Content-Type: text/plain; charset=ISO-8859-1 Good Morning, On Tue, Sep 1, 2009 at 4:30 AM, Anth wrote: > Having some issues getting this to work, dont know much about > encryption and I think im just doing a silly misstake somewhere. Would > appreciate a pointer or two in the correct direction. > > Encrypting "a" in c# using AES 256 bit cbc yields > > RZ8NxW9+S1qfzd9VRtzV4sFuHFuXJ3mzBpjwCTzbxJQ= > > Whilst in ruby I get: uNL1Ogvi+mQyWGniJRY88g== > > Ruby code: http://pastie.org/601527 > c# code: http://pastie.org/601526 > > I would suggest switching your c# code to use AESManaged class which is a proper implementation of the standard and not the RijndaelManaged class which is not. John --001485e76f16ee8c55047286600a--