Testing if string is sha1 in PHP

Posted by SGWebsNow on Stack Overflow See other posts from Stack Overflow or by SGWebsNow
Published on 2010-06-05T20:52:45Z Indexed on 2010/06/05 21:02 UTC
Read the original article Hit count: 173

Filed under:
|

I'm planning on storing the passwords as a sha1, so I need a way to validate that it is a sha1 at another point in my website. I was planning on using preg_match, but I do not know how to make regex patterns. Could someone help me out with one?

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about sha1