SSL Alternative - encrypt password with JavaScript submit to PHP to decrypt

后端 未结 6 1874
心在旅途
心在旅途 2020-12-05 16:35

I\'m building a website and my payment methods will be Google Checkout and Paypal. There will be links/buttons which will redirect the user to the secure Google/Paypal sites

6条回答
  •  一生所求
    2020-12-05 17:38

    This is the code to take the input and then encrypt the content by java script The entire code is also available in github.you guys can search for it encrypt_js_decrypt_php. The problem was running since long.I have come up with the solution.Just import it into localhost.

    
    
    
    
    
    
    
    

    Now,lets decrypt the code in php

    code ;
    $age =$json->Age  ;
    $key = "secretKeyToProvide";  /*--Provide Your secret key here what you have given in javascript--*/
    $decryptedSecretCode  = rc4($key, $secretCode) ;
    echo $decryptedSecretCode;
    exit;
    ?>
    

提交回复
热议问题