Decrypting a string which was encrypted by C# doesn't handle extended ascii

2013-02-27 Thread Bert Dawson
Hi I need to decrypt a string which was originally encrypted in C#. It works fine for normal ascii strings, but not with extended ascii characters, e.g. the ö in Citroën. It returns the unrepresentable character 65533 This is the code that was used for the encryption:

Re: Decrypting a string which was encrypted by C# doesn't handle extended ascii

2013-02-27 Thread Mark Drew
Maybe this would help? http://stackoverflow.com/questions/10247896/aes-rijndael-encrypt-between-c-and-java Regards Mark Drew On 27 Feb 2013, at 16:18, Bert Dawson bert...@gmail.com wrote: Hi I need to decrypt a string which was originally encrypted in C#. It works fine for normal

Re: Decrypting a string which was encrypted by C# doesn't handle extended ascii

2013-02-27 Thread Leigh
This is the code that was used for the encryption: What is the code for RijndaelDecrypt/RijndaelEncrypt? -Leigh ~| Order the Adobe Coldfusion Anthology now!

Re: Decrypting a string which was encrypted by C# doesn't handle extended ascii

2013-02-27 Thread Leigh
a string which was originally encrypted in C#. It works Oh wait...it looks like an encoding difference. CF's encrypt/decrypt functions always use UTF-8. Based on the results, those custom c# methods are using Encoding.Unicode, which is different.  You need to use the same encoding ie

Re: Decrypting a string which was encrypted by C# doesn't handle extended ascii

2013-02-27 Thread Bert Dawson
Thanks Mark and Leigh. Leigh, that did the trick. Cheers Bert On 27 February 2013 14:48, Leigh cfsearch...@yahoo.com wrote: a string which was originally encrypted in C#. It works Oh wait...it looks like an encoding difference. CF's encrypt/decrypt functions always use UTF-8. Based on