in this project you see how to work with SHA1 cryptographic hash function. for example get hash from string and how to crack SHA1 hash.
source compelete on github: https://github.com/mahdiabasi/SHA1Tool