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
ctype_xdigit is much faster. I typically use hashes for lookups and find it very useful.
ctype_xdigit