Sometimes we don't want to, a web address for people to see, the simple way is to encrypt it into a string of characters, the function is as follows:
function Encrypt ($key, $plain _text) {$plain _text = Trim ($plain _text);$IV = substr (MD5 ($key),
Ask the php experts to see the principles of this encryption algorithm PHPcodefunctionsys_auth ($ str, $ actionencode, $ key) {$ keymd5 ($ key); $ str $ actionencode? $ Str: base64_decode ($ str); search for a php expert and check the principles of
Two simple PHP decryption and decryption codes: www.phper.org.cn? The postencryption algorithm is as follows: functionencrypt ($ data, $ key) {$ keymd5 ($ key); $ x0; $ lenstrlen ($ data); $ lstrlen ($ key ); for ($ I two simple PHP decryption and
Many times we need to encrypt and decrypt data, such as some data that needs to be saved to a cookie, but not easily accessible by the user, and we need to encrypt the data to be stored in a cookie, and then decrypt it when we need to use it.
The
In many cases, we need to encrypt and decrypt data. For example, some data needs to be stored in cookies, but it cannot be easily obtained by users, in this case, we need to encrypt the data and save it to the cookie, and decrypt it when we need to
In many cases, we need to encrypt and decrypt data. For example, some data needs to be stored in cookies, but it cannot be easily obtained by users, in this case, we need to encrypt the data and save it to the cookie, and decrypt it when we need to
In many cases, we need to encrypt and decrypt data. For example, some data needs to be stored in cookies, but it cannot be easily obtained by users, in this case, we need to encrypt the data and save it to the cookie, and decrypt it when we need to
#!/usr/local/bin/php-----------------------------------------------------------Use the file/usr/local/apache/conf/httpd.conf/etc/userdomainsEnter the URL to check the account////////////////////////////////////////////////////// paymentcopy.phpecho '
PHP common processing static operations
A detailed PHP operation class that is often used for development-I hope you can add more-improve this operation class
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
Lab environment:
1,RootHow to recover password loss
Start the instance, press any key to enter GRUB mode, and press "e" to edit GRUB.
Select the kernel part of the second line and press "e" to enter the editing mode.
Enter sulinux = 0 1 and press
KEY is a previously defined constantMcrypt::encrypt ();Mcrypt::d ecrypt ();Defined (' ROOT ') or exit (' Access Denied '); class mcrypt{public static function encrypt ($code) { return base64_ Encode (Mcrypt_encrypt (mcrypt_rijndael_256
First, bubble sortPHP$arr=Array(1,5,9,7,2,8,4,3,6);//control the bubbling rounds for($i= 1;$iCount($arr);$i++) { //control how many times you need to compare, one number per round for($k= 0;$kCount($arr)-$i;$k++){ if($arr[$k]>$arr[$k+1]
This article mainly introduces a set of PHP reversible encryption and decryption algorithm instance code, a friend in need can refer to the For most cryptographic cryptography, we can use MD5, SHA1 and other methods. Can effectively prevent data
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.