eddysusanto
asked on
Encryption Library for VB and PHP
Dear member,
Can you suggest me a strong encryption library that I can use for VB and PHP ?
I need to encrypt and decrypt text. Encryption and decryption must can be done from VB6.0 application and PHP website.
And cross process. Encrypt using VB and decrypt using PHP and otherwise.
I dont want to use .net
I dont mind a premium library or a free one.
Thank you.
Can you suggest me a strong encryption library that I can use for VB and PHP ?
I need to encrypt and decrypt text. Encryption and decryption must can be done from VB6.0 application and PHP website.
And cross process. Encrypt using VB and decrypt using PHP and otherwise.
I dont want to use .net
I dont mind a premium library or a free one.
Thank you.
Use Blowfish - PHP has it built in to the mcrypt module and you can get VB implementations of it http://www11.brinkster.com/notbono/vb.asp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
One extra point when using Blowfish - you need to send the Initialisation Vector along with the encrypted data so that the decryption can be initialised into the same state as the original when the encryption took place. The initialisation vector is NOT the key so there are no security issues with storing it with the encrypted data.
Brian - good point there about sending the IV. In the code snippet above, we need to transmit these binary strings over the internet. That is why I have base64_encode and decode in the code snippet. It's probably baked into the examples, but if it is not, you may want to use it.
ASKER
Hi guys,
Thank you. I'll try first. I'll post the result here.
Thank you. I'll try first. I'll post the result here.
ASKER
Works great on my PHP and VB apss.
Thank you
Thank you
Best regards, ~Ray
Open in new window