# jQuery.encoding.digests.sha1

This jQuery plugin implements the SHA-1 cryptographic hash function.

## Source

The source code is currently hosted in TiddlyWiki's Subversion repository.

Feedback is welcome.

## API

- `$.encoding.digests.hexSha1Str(str)`: Return, in hex, the SHA-1 hash of a string

- `$.encoding.digests.sha1Str(str)`: Return the SHA-1 hash of a string

- `$.encoding.digests.sha1(x,blen)`: Calculate the SHA-1 hash of an array of blen bytes of big-endian 32-bit words

(full documentation in the code comments)

## Demo

[TBD]