Encrypt with CryptoJS and decrypt with PHP

前端 未结 3 1422
伪装坚强ぢ
伪装坚强ぢ 2020-12-08 12:07

On the client side (mobile device) I encrypt a users password with CryptoJS:

var lib_crypt = require(\'aes\');

$.loginButton.addEventListener(\'click\', fun         


        
3条回答
  •  自闭症患者
    2020-12-08 12:57

    Hello,

    in order to achieve this it should be considered to use the key and iv with 32 hex digits each, i had to solve exactly this doing my stuff and here is the way it goes

    
    
    
    
    

    And now receiving and decrypting in PHP

    
    

    With this we will have back the "Hi, this will be seen uncrypted later on" :)

提交回复
热议问题