Home  >  Article  >  Backend Development  >  PHP verifies whether md5 encoded code

PHP verifies whether md5 encoded code

WBOY
WBOYOriginal
2016-07-25 09:04:38858browse
  1. /**
  2. Verify md5 encoding
  3. @func: is_md5
  4. @param string $password
  5. */
  6. function is_md5($password) {
  7. return preg_match("/^[a-z0-9]{32}$/", $password) ;
  8. }
  9. ?>
Copy code


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn