? ??? ??? PHP(?? ??)? AES ??? ?? ??? ?? ????. ?? ?? ?? ??? ???? ??? ??? ???? ??? ??? ????.
AES ??
?? ??? ??(AES, Advanced Encryption Standard)? ?? ???? ?? ??? ???????(WeChat ??? ??? ????? ? ??? ????? ?????). ?? ??? ????? ???? ???? ??? ?? ?????.
?? ???
???? ???? ???? ?? ?????. ? ??? ??? ?? ??? ???? ?? ???? ??? ?????. ??? ? ??? ? ????? ????. ???? ?? ?????.
??? ???
???? ???? ???? ?? ????. ? ??? ??? ????? ??? ??? ???? ?????. ????? ???? ???? ??? ??? ???? ??? ??? ?????. ??? ? ??? ????? ????. ???? ??? ??? ????? RSA, ECC ? EIGamal???.
??:
PHP7.2? Mcrypt ??? ????? ???? OpenSSL ??? ?????.
<?php /* * AES 算法 */class Aes { private $hex_iv = '00000000000000000000000000000000'; private $key = '397e2eb61307109f6e68006ebcb62f98'; function __construct($key) { $this->key = $key; $this->key = hash('sha256', $this->key, true); } /* * 字符串加密 不寫入文件 */ public function encrypt($input) { $data = openssl_encrypt($input, 'AES-256-CBC', $this->key, OPENSSL_RAW_DATA, $this->hexToStr($this->hex_iv)); $data = base64_encode($data); return $data; } /* * aes 給PHP文件加密 * 寫入設(shè)置文件 */ public function filecrypt($filename) { $type=strtolower(substr(strrchr($filename,'.'),1)); if ('php' == $type && is_file($filename) && is_writable($filename)) { $contents = file_get_contents($filename); // echo $contents;exit; $contents = php_strip_whitespace($filename); // echo $contents;exit; // $headerPos = strpos($contents,'<?php'); // echo $headerPos;exit; // $contents = substr($contents, $headerPos + 5, $footerPos - $headerPos); // echo $contents; exit; $data = openssl_encrypt($contents, 'AES-256-CBC', $this->key, OPENSSL_RAW_DATA, $this->hexToStr($this->hex_iv)); // echo $data;exit; $data = base64_encode($data); // echo $data;exit; return file_put_contents($filename, $data); } return false; } /* * 字符串解密 */ public function decrypt($input) { $decrypted = openssl_decrypt(base64_decode($input), 'AES-256-CBC', $this->key, OPENSSL_RAW_DATA, $this->hexToStr($this->hex_iv)); return $decrypted; } /* For PKCS7 padding */ private function addpadding($string, $blocksize = 16) { $len = strlen($string); $pad = $blocksize - ($len % $blocksize); $string .= str_repeat(chr($pad), $pad); return $string; } private function strippadding($string) { $slast = ord(substr($string, -1)); $slastc = chr($slast); $pcheck = substr($string, -$slast); if (preg_match("/$slastc{" . $slast . "}/", $string)) { $string = substr($string, 0, strlen($string) - $slast); return $string; } else { return false; } } function hexToStr($hex) { $string=''; for ($i=0; $i < strlen($hex)-1; $i+=2) { $string .= chr(hexdec($hex[$i].$hex[$i+1])); } return $string; } } $key = '397e2eb61307109f6e68006ebcb62f98'; $aes = new Aes($key); $filename = __DIR__.'\exchange.php'; // $filename = 'Y6RCuF6ETPC5J57hfhxovg=='; // 加密 $string = $aes->filecrypt($filename); // echo $string; echo "OK,加密完成!" ;
2. PHP ??? ????? ??? ??
<?php function encode_file_contents($filename) { $type=strtolower(substr(strrchr($filename,'.'),1)); if ('php' == $type && is_file($filename) && is_writable($filename)) { // 如果是PHP文件 并且可寫 則進(jìn)行壓縮編碼 $contents = file_get_contents($filename); // 判斷文件是否已經(jīng)被編碼處理 $contents = php_strip_whitespace($filename); // 去除PHP頭部和尾部標(biāo)識 $headerPos = strpos($contents,'<?php'); $footerPos = strrpos($contents,'?>'); $contents = substr($contents, $headerPos + 5, $footerPos - $headerPos); $encode = base64_encode(gzdeflate($contents)); // 開始編碼 $encode = '<?php'."\n eval(gzinflate(base64_decode("."'".$encode."'".")));\n\n?>"; return file_put_contents($filename, $encode); } return false; } //調(diào)用函數(shù) // echo __DIR__.'\server.php'; $filename = __DIR__.'\server.php'; encode_file_contents($filename); echo "OK,加密完成!" ;
?? ?? ?:
php?? ?? post ??? ?? ??? get ???
thinkphp5?? json ??? ??(??)? ???? ??
? ??? PHP?? AES ??? ?? ?? ??(?? ??)? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

?? ???? ??? ??? ?? ????? ???? ?? ??? ??? ??? ???? ???? ?? ??? ???! ??? ??? ?? ?????? ?? ??? ??? ? ?? ?? ??? ??? ?????. ??? Win10 Home Edition? ?? ??? ???? ?? ? ??? ????. Win10 Home Edition? ??? ???? ? ????? ??: Win10 Home Edition? ??? ???? ? ????. Windows ????? ?? ??? ???? 1. ?????? ?? ?? ??? ??? ??? ???? ??? ?(?? ?? ??? ??) "??" ??? ?????. 2. ??? ?? ??????? '??' ??? ?? ???? ? ??? ?? '???? ???? ?? ??? ???' ??? ?????. 3. ??? ???? "??"? ????

Microsoft? ??? win11? ?? DNS ??? ???? ????? ?? ???? win11 ???? DNS? ???? ??? ????. ??? ???? ???? DNS ??? ?? ???. win11 ???? DNS? ?? ??? ????: 1. ?? ???? ???? ?????? ??? ?????. 2. ?? ?? ???? "???"? ???. 3. ?? ?? ??? DNS ?? ??? ?? "??"? ?????. 4. "??(DHCP)"? "??"?? ??? ? ??? "IPv4"? ???. 5. ? ? , ?? DNS? "8.8.8.8"? ?????. 6. ?? ?? ?? DNS ???? "????(DNS over HTTPS)"? ?????. 7. ??? ??? ? "??"? ???? ??? ?? ? ????.

?????? ? ?? ??? ? ?? ??? ?????. ?? 1: ??? ?? ??? ??? ??? ??? ???? ? ????? ????? ???? ??? ? ??? ?????. ?? 2: ?? ??? ?? ??? ????? ? ??? ???? ? ????? ???? ???. ?? ?? ?? ???? ?????? ?? ????? ???? WinRAR?? ?? ???? ??? ? ????. ??? ????? ???? WinRAR? ??? ? ???? ????? ?????. ??? ??? ????: WinRAR? ?? ?? ??????? ??-??? ??? ? [??]?? ???? ?? ?? ??-???? ??? ?????. ??? ????? ????? ???? ??? ???? ??? ?????. ????

?? ???? ??? ????? ?? ??? ??? ???? ? ??? ??? ??? ????? ???? ??? ?? ?????. ??? ???? ? ??? ???? ?? ????? ???? ? ?? ???? ??? ????. ??, ?? ??? ?? ???? ??? ??? ???? ?? ????? ??? ? ????. Windows ???? ?? ?? ??? ?? ??? ? ????. ???? ??? ???? ?? ??? ??? ??? ???? ??? ? "??"? ?????.

?? ??? ??? ???? ??? win11 ??? ????? ??? ????. ??? ?? ???? ????? ?? ?????? ???? ??? ???? ? ????. win11 ?? ???? ?? ??? ????: 1. ?? ?????? ??? ?? ??? ??? ???? ???? ??? ?? "??"? ???. 2. ?? ?? ?? ??? "??"? ?????. 3. "???? ???? ?? ??? ???"? ?????. "? ???? "??"? ?????. 4. ?? ?? "??"? ???? ?????. 5. ????? ??? ??? ??? ???? "??"? ?? ??? ????? ?????.

Apple ????? ???? ??? ?? ?? ??? ???? ? ????. ?? ???? ?? ??? ????. ????? ? ??? ??? ??? ? ??? ?? ? ????. ???? ?? ?? ????? ?? ???? ??? ?? ?? ??? ?? ??? ?????. Apple ??? ???? iPhone ?? ?? ??? ?? ?? A: ????? ? ??? ??? ??? ? ??? ??? ?? ?? ???? ?????. 1. ?? ??? ???? ????? ? ??? ?????. ???? ? ??? [??]? ?????. 2. [??? ??]? ?????. 3. ??? ????, ?? ??? ??? ?? ??? ? ??? ??? [???] ???? ?????. 4. ?? [?? ??]? ?????.

CentOS? vim/vi? ???? ??? ????? ?????. 1. vim/vi? ???? ??????. ??: ??? ? ????? ??? ?? ???? ???? ?? ???? ? ? ????. ?? ???? ???? ?? ???? ?? ???? ??? ?? ? ??? ???? ???? ??? ???? ?? ????. vi?? ??? ????? ??? ????. root master /root/: [root@www~]#vim/vitext.txt2 ???? ??? ??? ?? text.txt? ?????. ?? ??? ???? ??? ??? ? ESC? ??? ??? ?????. X(??? ??) X), ?? 3)

???: Meteor, ChainCatcher ????: Marco, ChainCatcher ?? ?? ?? ?? ??? ????? Analog? 1,600? ??? ?? ??? ????? ??? ??? ?????. ?? ????? TribeCapital, NGCVentures, Wintermute, GSR, NEAR, OrangeDAO? ????. , Mike Novogratz? ?? ?? ?? ?? Samara Asset Group, Balaji Srinivasan ? 2023? ?, Analog? X ???? ?? ???? ?? ???? ?? ??? ???? ??? ??? ??????.
