If what you're trying to do is verify a password entered into an
application, what you should do is hash the entered password using the
same SHA1 method. The resulting hash will be the same as the stored
hash if the passwords are the same.
Tushar Gandhi wrote: