Avatar of tonelm54
tonelm54
 asked on

Encrpyt / Decrypt in PHP and VB.net

Ive been trying to find a function which can encrypt data from VB.net and then decrypt to PHP, and also encrypt in PHP and decrypt in VB.net.

What I have is several files I want to upload in VB.net encrypted and then for PHP to simply store them in the encrypted form, and when needed, php sends the encrypted files back to VB.net which decrypts it and then stores on the local PC decrypted. This works great, but now I want to write a web front end so need to decrypt the files which are stored on the server to allow them to be viewable by the web application.

Ive found solutions in both PHP and VB.net but when it comes to writing a function for the other language and then testing the tests fail. I dont want to use my current encrpyting function (mainly cause I wrote it many years ago and it sucks in terms of security).

Does anyone have any examples to encrypt and decrypt which will return the same results no matter if its encrypted or decrypted in VB.net or PHP?

Thank you in advance :-)
Visual Basic.NETPHP

Avatar of undefined
Last Comment
Mlanda T

8/22/2022 - Mon
Dan Craciun

libsodium has both Visual Studio and php libraries.

HTH,
Dan
ASKER CERTIFIED SOLUTION
Mlanda T

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Your help has saved me hundreds of hours of internet surfing.
fblack61