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

PHP verifies whether md5 encoded code

WBOY
Release: 2016-07-25 09:04:38
Original
913 people have browsed it
  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


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template