From: Anth Date: 2009-09-02T17:15:26+09:00 Subject: Re: AES encryption between c# and ruby On Sep 1, 7:09 pm, John W Higgins wrote: > [Note:  parts of this message were removed to make it a legal post.] > > 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 Problem is that I have no control over the c# part. So I am just going to go with c# on my side as well which is a bit annoying but will save me a lot of time. Thanks guys. Cheers David