Home  >  Article  >  Backend Development  >  Encrypt string php code using md5

Encrypt string php code using md5

WBOY
WBOYOriginal
2016-07-25 08:46:251047browse
After reversing the order of the ciphertext string after the MD5 operation, perform the MD5 operation again.
  1. function md5_5($data)
  2. {
  3. //Get the ciphertext of the data
  4. $data = md5($data);
  5. //Reverse the character order of the ciphertext string
  6. $ data = strrev($data);
  7. //Finally perform another MD5 operation and return
  8. return md5($data);
  9. }
  10. ?>
Copy code

php
This topic was moved by Xiaobei on 2015-11-16 10:33


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