Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

one way SHA1 hash javascript implementation?

I have a server that is not using SSL, so I'm trying to find a way to secure the data being passed to the server. My first thought was jCryption, but it is not exactly what I need. So what I decided is that I could just pre-hash the password and send it to the server for comparison. So my question is, is there a sha1 utility that can be used for password verification purposes with PHP?

like image 439
nkcmr Avatar asked Mar 07 '12 23:03

nkcmr


1 Answers

Try the Stanford Crypto library. It's pretty comprehensive but if you just need a single hashing function you can extract it from the core (it has sha1 and 256).

Refer This

like image 151
leebriggs Avatar answered Oct 30 '22 18:10

leebriggs