AES-256-CBC Mcrypt-PHP decrypt and Crypto-JS Encrypt

后端 未结 1 2096
臣服心动
臣服心动 2020-12-31 23:48

I am trying to encrypt in Javascript with CryptoJS and decrypt in PHP. The JS code is:

var salt = CryptoJS.lib.WordArray.random(128/8); 
var key256Bits500Ite         


        
1条回答
  •  抹茶落季
    2021-01-01 00:28

    Your code WILL work if you just fix a few typos there

    JS

        
        
        
    

    PHP

        

    0 讨论(0)
提交回复
热议问题