How can I encrypt with AES in C# so I can decrypt it in PHP?

后端 未结 4 1818
小蘑菇
小蘑菇 2020-12-12 06:25

I\'ve found a few answers to Encrypt in PHP, and Decrypt in C#, but as yet have been unable to reverse the process...

The background is I want to:

In C#: AES

4条回答
  •  温柔的废话
    2020-12-12 06:51

    I had a similar problem a few months ago - I had a project that had to use AES encryption and I had to make sure that the exact same algorithm is used between a C# and A C++ component. I ended up implementing a shared DLL library used by both based on the AES crypto wrapper from this codeplex article:

    http://www.codeproject.com/KB/security/WinAESwithHMAC.aspx

提交回复
热议问题