Calculate sha1-hash using javascript
Here’s a snippet to calculate a string’s sha1-hash using javascript. The sha1 hashes are compatible with php’s sha1 function. The snippet depends on the utf-8 encode function, see link at bottom of this page.[code language=javascript] function sha1 ( str ) { // * This script relys on the utf-8 encoding function // * example 1: [...]
More »
I am a .NET programmer first and foremost. But in my spare time I like to play around with PHP, Erlang, Haskell, F#,