AES 256 on the client side (JS) and in the server (PHP)
问题 I'm trying to encrypt and decrypt data on the server side and the client using the same type of operation, which is AES-256. On the server I use PHP and client I use CryptoJS so far I could only encrypt and decrypt the client on the server, see the code: JS <script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/aes.js"></script> <script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/pbkdf2.js"></script> <script> var salt = CryptoJS.lib.WordArray.random