AES Encryption between PHP and VB.NET applications

  • jammer2552
  • Graduate
  • Graduate
  • User avatar
  • Posts: 139

Post 3+ Months Ago

Hey there Ozzu community, this one's tough.

I have a Windows application that needs to encrypt data with AES/Rijndael and send it (base64 encoded of course) to a PHP web application. Despite being able to get the encryption working independently in each script using the same IV/Key, when decrypting data from the other it comes out as a garbled mess.

So I was hoping one of the many programmatical genius's here at Ozzu may have had experience with this or could figure it out and share their solution. :)

Thanks,
James
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

Here's a quote from:

http://www.obviex.com/samples/Encryption.aspx

"In order for decryption to work, all parameters of this function
except cipherText value - must match the corresponding parameters of the Encrypt function which was called to generate the ciphertext."


That site provides code to do what you want.
  • jammer2552
  • Graduate
  • Graduate
  • User avatar
  • Posts: 139

Post 3+ Months Ago

I actually used that code in the PHP.

And I just discovered something - The company Chilkat knows the differences between the two platforms, at the bottom of that page is a bunch of their methods to convert between Visual Basic .NET and PHP! I downloaded the library for the Visual Basic .NET and grabbed the PHP code, and it works beautifully!

Only one problem - it's $150. This is for a Non-Profit Organization.

Know anything that achieves the same... but for free?

example-code . com / vbdotnet / crypt2_aes_matchPhp.asp
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

Non profit doesn't mean free. They have expenses too. Good luck finding it for free.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 168 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.