开发者

How to Encrypt a string in PHP, and decrypt it in Visual basic 6?

开发者 https://www.devze.com 2023-02-10 21:45 出处:网络
I have an application in VB which communicates over HTTP with the WEB app built with PHP. The PHP application w开发者_JAVA技巧ill send an encrypted value(string) to the VB app, the VB app should be a

I have an application in VB which communicates over HTTP with the WEB app built with PHP.

The PHP application w开发者_JAVA技巧ill send an encrypted value(string) to the VB app, the VB app should be able to decrypt it to get the string.

FYI: I am using VB6 and PHP 5.3 with Xampp.

Thank you


The programming language/platform is irrelevant - what will matter is that you implement the same encryption/decryption algorithm at both ends.


Why do you need to encrypt data ? Depending on the answer :

  • you should use https
  • or use mcrypt php extension
  • or create your own method


Check Encryption for C++, Visual Basic, php using PC1. Someone has reported it works perfectly with php and VB6.

0

精彩评论

暂无评论...
验证码 换一张
取 消