Click here to Skip to main content
15,914,608 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I want to encrypt my password using javascript and then decrypt it using php at server side, can anyone tell me the simplest way to accomplish it. Thanks
Posted

You should never decrypt passwords, not even to check them. Store the encrypted password in the database and check the encrypted data to that. There is no reason to ever decrypt passwords, and you should be using an encryption that is one way and can't be decrypted for extra security.
 
Share this answer
 
Comments
developersend 16-Dec-13 1:13am    
How to encrypted password on Javascript. Encrypted password through on javascript in the php page.
Ron Beyer 16-Dec-13 1:17am    
Javascript Encryption the first link seems to be what you need, with many other examples available.
developersend 16-Dec-13 1:36am    
HOW TO encrypted password SEND PHP PAGE
[no name] 16-Dec-13 12:37pm    
Ron Beyer is verry right! Search on e.g. google for "signature hash private public key" and try to get the point.
Hi Friend,
There is a javascript library called crypto-js (search on Google)... This library provides you with options to encrypt data etc using javascript on client....

I hope it helped....

With Regards
Tushar Srivastava
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900