Hello i’m trying to decrypt a base64 string with php and i can’t figure it out. I am able to decrypt it with JavaScript using CryptoJS with the code below What is the equivalent of this code in PHP? Answer To decode and decode from base64 a string can use base64_encode() : and now to decode: Now can apply this
Tag: des
How to encrypt with openSLL using the DES-CBC method
Actually I’m using Mcrypt but I’m moving to OpenSSL and I need to be able to use it the exact same way as Mcrypt. This is how I’m encrypting For the decryption, I already managed to do it in OpenSSL, both are working the same exact ways For the encryption using OpenSSL, this is my test code And this is