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 think that's what you're looking for: http://phpjs.org/functions/sha1:512
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
You shouldn't be using SHA1 to do your hashing anymore, since it's been broken for a while. Try SHA256.