string:ssh-2.0-jsch-0.1.44Info:checkciphers:aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour, Arcfour128,arcfourINFO:AES256-CTR is not available.INFO:AES192-CTR is not available.INFO:AES256-CBC i
. Bandwidth (bandwidth): The capacity of information (text, pictures, audio, video) that can be transmitted over a transmission line at a given moment. The higher the bandwidth, the faster the page calls. Limited bandwidth causes as little as possible to make the picture files in the Web page smaller.Browser (browser): A program that enables you to browse through the World Wide Web. Browsers can be text based or picture. The famous browser has Microsoft's Ie,netscape navigator. Browsercache (bro
PHP Token. Because base64 is used, a problem occurs when sending the token through the GET method. For example: testtest. php? A1 + 2 you use $ _ GET [a] to obtain 12, that is, because base64 is used, a problem occurs when sending this token through the GET method.
For example, http: // test/test. php? A = 1 + 2
You can use $ _ GET ["a"] to obtain the value: 1 2, that is, the plus sign is missing. At first I used urlencode to convert it, but there was always one or two unexpected results.
Later
cannot reach the second one mentioned above. I modified it today and added function 2. I personally feel that it is okay.
Let's take a look at the code and tell us what is unreasonable! Thank you.
I am looking for a method on the Internet to encrypt it. I made a slight modification.
GEncrypt. inc. php:
The code is as follows:
Class GEncrypt extends GSuperclass {Protected static function keyED ($ txt, $ encrypt_key ){$ Encrypt_key = md5 ($ encrypt_key );$
This article introduces php custom encryption and decryption. Many of our friends use php's own. What if we write it ourselves? Let's look at the code below.
The Code is as follows:
Copy code
// Description: encryption function written in PHP. Private keys are supported.// Finishing: http://www.bKjia. c0mFunction keyED ($ txt, $ encrypt_key){$ Encrypt_key = md5 ($ encrypt_key );$ Ctr = 0;$ Tmp = "";For ($ I = 0; $ I {If ($
Php custom encryption solution implementation code. The Mcrypt encryption library in PHP requires additional settings. many people directly use the md5 () function for encryption. this method is indeed safe, but because md5 is irreversible encryption, the password cannot be restored, therefore, there is also a PHP Mcrypt encryption library that requires additional settings. many people directly use the md5 () function for encryption. this method is indeed safe, but because md5 is irreversible en
Powerful PHP encryption and decryption
Http://blog.ddian.cn /? Posting = 923
Class Ender {
Private $ enkey; // key used for encryption and decryption
// The construction parameter is the key
Public function _ construct ($ key = ''){
If (! $ Key ){
$ This-> enkey = $ key;
}
}
// Set the key
Public function set_key ($ key ){
$ This-> enkey = $ key;
}
Private function keyED ($ txt, $ encrypt_key)
{
$ Enc
PHP encryption and decryption is often the case, recently in the related things, found Discuz forum PHP encryption and decryption processing class code, feel very good, in use, to refer to the Discuz forum passport-related functions, I will attach the use of the method, the first class code post:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
/*=========================================================文件名称:cls.sys_crypt.php=摘要:php加密解密处理类=版
PHP Mcrypt Encryption Library needs additional settings, many people are directly using the MD5 () function encryption, this method is indeed safe, but because MD5 is irreversible encryption, unable to restore the password, so there are some inconveniences, this article describes the encryption function supports the private key, used up or good
The code is as follows
Copy Code
Description: PHP write encryption function, support private key function KeyED ($txt,
This article to share this PHP encryption class is a can support the Chinese and English can be encrypted to decrypt the PHP implementation class file, the need for students can refer to, but it is best to set the document encoding Utf-8 OH.
Save the following code as a MD5Crypt.class.php file
The code is as follows
Copy Code
Class Md5crypt {/*** Enter description here ...* @param unknown_type $str* @return String*/Public final static function Mdsha ($STR) {$code =
It was because of the use of Base64 that there was a problem when sending this token through the Get method.
For example: http://test/test.php?a=1+2
You use $_get["a"] to obtain is: 1 2, that is, the plus sign is gone. At first I used UrlEncode to convert it, but there were always one or two of the results that were unexpected.
Later think of the Base64 character is limited to: [a-za-z0-9\+\/=] So many, plus the problem, I will replace the plus sign with no problem, underline is the best choice
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.