I’m using Crypto-js for encrypting password with a key and send it to server. I want to decrypt it in server using PHP. How this can be done? JS: Encrypted text: U2FsdGVkX1+EaW3J1GE1k/EU5h6C+nxBH364Xhez+b0= PHP: Result: string(32) “����>���s��ȡ�V?E��M���I” I’m getting weird results here. Answer The following solution is not from my side but from @Artjom B., so all credits go to him.
Tag: openssl
I want to decrypt the text that in encrypted in php using openssl_encrypt
Php encrypt function is like I have no idea how to decrypt this in js. I’m currently using CryptoJs. The most confusing part is the iv and base64_decode($key). My current implementation in js is like below I’m so confuse with iv key and decoding the key in base64. Answer The problem is key. It will be resolved if you parse