A cryptographic hash function that computes a 160-bit hash value of some given data. Often used to obscure passwords in databases. It's significantly more secure than MD5, but some weaknesses have been published. Consider using an SHA2 family hash algorithm instead, such as SHA256. Other alternatives include RIPEMD160 and Whirlpool.
sha1("test") = a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
by PorkWaffle January 02, 2012