Home > Backend Development > PHP Tutorial > Functions in php that may be used to encrypt strings

Functions in php that may be used to encrypt strings

高洛峰
Release: 2023-03-03 18:54:02
Original
1004 people have browsed it

The login principle is quite complicated. It is too simple for me to think that curl will get the page and then post it.

Sort out the functions of price processing strings encountered:

<?php 
$encryption = "username"; 
echo base64_encode ($encryption);//echo "dXNlcm5hbWU= "; 
echo "<br>"; 
echo urlencode("http://".$encryption);//echo " http%3A%2F%2Fusername "; 
echo "<br>"; 
echo sha1($encryption);//echo "249ba36000029bbe97499c03db5a9001f6b734ec" 
echo "<br>"; 
?>
Copy after login

Record their approximate appearance so that they can be quickly identified when encountering such processing in the future.

For more articles related to functions in PHP that may be used to encrypt strings, please pay attention to the PHP Chinese website!


Related labels:
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