Pmedwards25 Posted June 22, 2015 Share Posted June 22, 2015 I'm trying to make a server API in PHP, which will be contacted by VB.NET (WinForms) on the client. This is what should happen: The client form will contact the API with a string "A". If A exists in the server's connected SQL database, the API will return "A" encrypted with an associated string "B" in the database (result "C"). The client will attempt to decrypt C using a locally provided string (which ought to be B, if all is well). I can figure out the encryption and decryption in VB.NET using 128-bit ECB AES. However, since I'm new to PHP, I don't want to write an API that isn't compatible with my VB.NET decryption suite. So which encryption and decryption suite/APIs should I use in PHP and VB so as to be cross-platform compatible? Link to comment https://forums.phpfreaks.com/topic/296954-phpvb-encryption-api-cross-platform-compatibility/ Share on other sites More sharing options...
boompa Posted June 22, 2015 Share Posted June 22, 2015 You can use mcrypt with AES in ECB mode. Link to comment https://forums.phpfreaks.com/topic/296954-phpvb-encryption-api-cross-platform-compatibility/#findComment-1514591 Share on other sites More sharing options...
Pmedwards25 Posted June 22, 2015 Author Share Posted June 22, 2015 What arguments would I pass for "cipher" and "mode"? Link to comment https://forums.phpfreaks.com/topic/296954-phpvb-encryption-api-cross-platform-compatibility/#findComment-1514596 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.