Home  >  Article  >  Backend Development  >  How to encrypt password in php

How to encrypt password in php

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-09-27 15:43:282603browse

How to encrypt password in php

First write the comment content.

How to encrypt password in php

Then create a new function jiami.

How to encrypt password in php

Related recommendations: "php tutorial"

Create a new variable $pwd.

How to encrypt password in php

Use the MD5 function to encrypt the password.

How to encrypt password in php

Then print the result.

How to encrypt password in php

Call function jiami();

How to encrypt password in php

Just open the browser to test!

How to encrypt password in php

The above is the detailed content of How to encrypt password in php. For more information, please follow other related articles on the PHP Chinese website!

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