当前位置:首页>java>代码分享 | 高级加密标准AES-256加密算法

代码分享 | 高级加密标准AES-256加密算法

  • 2026-02-02 21:23:20
代码分享 | 高级加密标准AES-256加密算法

1.算法概述

AES(Advanced Encryption Standard,高级加密标准)是目前最广泛使用的对称加密算法之一。该算法基于Rijndael算法设计,由比利时密码学家Joan Daemen和Vincent Rijmen开发。AES-256表示使用256位密钥长度的AES算法,提供极高的安全强度。

2.数学基础

有限域运算

AES算法的核心数学基础建立在有限域GF(2^8)上。在这个域中,元素表示为8位二进制数,运算遵循特定的数学规则。加法运算等同于按位异或(XOR)操作,而乘法运算则需要在模不可约多项式x^8 + x^4 + x^3 + x + 1下进行。

代码中的xtime函数实现了在GF(2^8)域中的乘2运算。当最高位为1时,结果需要与0x1B(即27的十进制值)进行异或,这对应于模不可约多项式的约简操作。

矩阵表示

AES将128位数据组织为4×4字节矩阵进行处理。这种矩阵表示法使得算法能够高效地执行字节级操作。输入的十六进制字符串首先被转换为字节矩阵,每个字节对应矩阵中的一个元素。

2.加密算法流程

密钥扩展

AES-256使用256位密钥,需要扩展为44个轮密钥(每个轮密钥128位),共进行14轮加密。密钥扩展过程使用递推公式:

W[i] = W[i-4] ⊕ G(W[i-1], i)

其中G函数包含字节替换、循环移位和轮常数异或操作。轮常数RC[i]定义为:

RC[i] = x^(i-1) mod (x^8 + x^4 + x^3 + x + 1)

轮函数操作

每轮加密包含四个基本操作:

字节替换(SubBytes):使用S盒进行非线性替换。S盒通过数学变换生成,包含两个步骤:首先计算字节在GF(2^8)中的乘法逆元,然后进行仿射变换。这种设计提供了良好的非线性特性。

行移位(ShiftRows):第一行保持不变,第二行循环左移1位,第三行循环左移2位,第四行循环左移3位。这种操作增强了数据的扩散性。

列混合(MixColumns):将每列视为GF(2^8)上的多项式,与固定多项式{03}x^3 + {01}x^2 + {01}x + {02}相乘。矩阵形式为:

[s0,c]   [02 03 01 01] [s0,c]

[s1,c] = [01 02 03 01] [s1,c]

[s2,c] = [01 01 02 03] [s2,c]

[s3,c]   [03 01 01 02] [s3,c]

轮密钥加(AddRoundKey):将状态矩阵与轮密钥进行按位异或操作。

3.解密算法流程

解密过程执行加密的逆操作,使用逆S盒、逆行移位、逆列混合等操作。逆列混合使用不同的变换矩阵,其系数为:

[0e 0b 0d 09]

[09 0e 0b 0d] 

[0d 09 0e 0b]

[0b 0d 09 0e]

这些系数是加密时使用的系数在GF(2^8)中的乘法逆元。

4.填充机制

由于AES是分组密码,要求输入数据长度必须是128位(16字节)的倍数。代码实现了PKCS7填充标准:当最后一块数据恰好为16字节时,需要添加一个额外的16字节块,其中每个字节的值都是16(十六进制0x10);当最后一块数据少于16字节时,用N个字节填充至16字节,每个填充字节的值都是N。这种填充方式确保了解密时能够正确识别和移除填充字节。

5.安全特性

AES算法的安全性基于多个设计原则:

混淆性:S盒提供强烈的非线性变换,使得密钥和密文之间的关系复杂化。

扩散性:行移位和列混合操作确保明文的任何变化都会影响整个密文块。

雪崩效应:明文或密钥的微小变化会导致密文的显著变化,平均50%的输出位会发生改变。

6.算法复杂度

AES-256的计算复杂度为O(n),其中n是数据长度。对于128位分组,每轮需要进行16次字节替换、16次异或操作、16次列混合操作等。整个加密过程包含14轮完整操作,提供足够的安全强度。

7.应用场景

AES-256被广泛应用于各种安全通信协议中,包括SSL/TLS、IPSec、WPA2等。其256位密钥长度提供了约2^256的密钥空间,即使在量子计算攻击面前仍具有相当的安全性。

该算法的实现充分体现了现代分组密码的设计理念,通过简单的代数运算构建复杂的安全机制,为信息安全提供了可靠的保障。

代码

% AES256-ECB-PKCS7Paddingclcclear all;%% 最后一个数据块刚好为16字节,则需要多加一个16字节数据块结尾,%最后16字节的数据中每个BYTE的值是数据块大小即16Plaintext ='00112233445566778899aabbccddeeff' Padding = '10101010101010101010101010101010';Key ='000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f' Ciphertext1 = Cipher(Key, Plaintext)Ciphertext2 = Cipher(Key, Padding)Plaintext1 = InvCipher(Key,Ciphertext1)Plaintext2 = InvCipher(Key,Ciphertext2)%% 最后一个数据块小于16字节,则需用几个Padding字节补齐成16个字节,% Padding Byte的值为Padding Byte的个数,Plaintext ='00112233445566778899aabbccdd' ;Padding = '0202';Plaintext = strcat(Plaintext , Padding);Key ='000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f' Ciphertext1 = Cipher(Key, Plaintext)Plaintext1 = InvCipher(Key,Ciphertext1)function a = xtime(x,c)a=0;if bitget(x,1)    a=c;endx=bitshift(x,-1);while x>0    c=bitshift(c,1);    if bitget(c,9)        c=bitset(c,9,0);        c=bitxor(c,27);    end    if bitget(x,1)        a=bitxor(a,c);    end    x=bitshift(x,-1);endend    function state = SubBytes(state)Sbox=['637c777bf26b6fc53001672bfed7ab76';...      'ca82c97dfa5947f0add4a2af9ca472c0';...      'b7fd9326363ff7cc34a5e5f171d83115';...      '04c723c31896059a071280e2eb27b275';...      '09832c1a1b6e5aa0523bd6b329e32f84';...      '53d100ed20fcb15b6acbbe394a4c58cf';...      'd0efaafb434d338545f9027f503c9fa8';...      '51a3408f929d38f5bcb6da2110fff3d2';...      'cd0c13ec5f974417c4a77e3d645d1973';...      '60814fdc222a908846eeb814de5e0bdb';...      'e0323a0a4906245cc2d3ac629195e479';...      'e7c8376d8dd54ea96c56f4ea657aae08';...      'ba78252e1ca6b4c6e8dd741f4bbd8b8a';...      '703eb5664803f60e613557b986c11d9e';...      'e1f8981169d98e949b1e87e9ce5528df';...      '8ca1890dbfe6426841992d0fb054bb16'];Sbox=reshape(hex2dec(reshape(Sbox',2,[])'),16,16); state=Sbox(state+1);endfunction state = ShiftRows(state)state(2,:)=circshift(state(2,:),[0,-1]);state(3,:)=circshift(state(3,:),[0,-2]);state(4,:)=circshift(state(4,:),[0,-3]);endfunction State = MixColumns(state)State=state;for a=1:4:13    State(a)=bitxor(bitxor(bitxor(xtime(state(a),2),xtime(state(a+1),3)),state(a+2)),state(a+3));    State(a+1)=bitxor(bitxor(bitxor(xtime(state(a+1),2),xtime(state(a+2),3)),state(a)),state(a+3));    State(a+2)=bitxor(bitxor(bitxor(xtime(state(a+2),2),xtime(state(a+3),3)),state(a)),state(a+1));    State(a+3)=bitxor(bitxor(bitxor(xtime(state(a+3),2),xtime(state(a),3)),state(a+1)),state(a+2));endendfunction w = KeyExpansion(key)key=hex2dec(reshape(key,2,[])');w=reshape(key,4,[]);for i=8:59    temp=w(:,i);    if mod(i,8)==0        temp=SubBytes(circshift(temp,[-1,0]));        temp=bitxor(temp,[2^(i/8-1),0,0,0]');    elseif mod(i,8)==4        temp=SubBytes(temp);    end    w(:,i+1)=bitxor(w(:,i-7),temp);endendfunction state = InvSubBytes(state)Sbox=['52096ad53036a538bf40a39e81f3d7fb';...      '7ce339829b2fff87348e4344c4dee9cb';...      '547b9432a6c2233dee4c950b42fac34e';...      '082ea16628d924b2765ba2496d8bd125';...      '72f8f66486689816d4a45ccc5d65b692';...      '6c704850fdedb9da5e154657a78d9d84';...      '90d8ab008cbcd30af7e45805b8b34506';...      'd02c1e8fca3f0f02c1afbd0301138a6b';...      '3a9111414f67dcea97f2cfcef0b4e673';...      '96ac7422e7ad3585e2f937e81c75df6e';...      '47f11a711d29c5896fb7620eaa18be1b';...      'fc563e4bc6d279209adbc0fe78cd5af4';...      '1fdda8338807c731b11210592780ec5f';...      '60517fa919b54a0d2de57a9f93c99cef';...      'a0e03b4dae2af5b0c8ebbb3c83539961';...      '172b047eba77d626e169146355210c7d'];Sbox=reshape(hex2dec(reshape(Sbox',2,[])'),16,16); state=Sbox(state+1);endfunction state = InvShiftRows(state)state(2,:)=circshift(state(2,:),[0,1]);state(3,:)=circshift(state(3,:),[0,2]);state(4,:)=circshift(state(4,:),[0,3]);endfunction State = InvMixColumns(state)State=state;for a=1:4:13    State(a)=bitxor(bitxor(bitxor(xtime(state(a),14),xtime(state(a+1),11)),xtime(state(a+2),13)),xtime(state(a+3),9));    State(a+1)=bitxor(bitxor(bitxor(xtime(state(a),9),xtime(state(a+1),14)),xtime(state(a+2),11)),xtime(state(a+3),13));    State(a+2)=bitxor(bitxor(bitxor(xtime(state(a),13),xtime(state(a+1),9)),xtime(state(a+2),14)),xtime(state(a+3),11));    State(a+3)=bitxor(bitxor(bitxor(xtime(state(a),11),xtime(state(a+1),13)),xtime(state(a+2),9)),xtime(state(a+3),14));endendfunction Out = InvCipher(key,In)%change key to w%AES-256 inverse cipher%Impliments FIBS-197, key is 256-bit hexidecimal input, % message (Inis 128-bit hexidecimal.%David Hill%Version 1.0.1%12-21-2019In=hex2dec(reshape(In,2,[])');%w=KeyExpansion(key);%state=reshape(In,4,[]);state=AddRoundKey(state,w(:,57:60));for k=14:-1:2    state=InvShiftRows(state);    state=InvSubBytes(state);    state=AddRoundKey(state,w(:,4*(k-1)+1:4*k));    state=InvMixColumns(state);endstate=InvShiftRows(state);state=InvSubBytes(state);state=AddRoundKey(state,w(:,1:4));Out=state(:)';Out=lower(dec2hex(Out(1:length(In)))');%Out=Out(:)';%endfunction Out = Cipher(key,In)%change key to w%AES-256 cipher%Impliments FIBS-197, key is 256-bit hexidecimal input, % message (Inis 128-bit hexidecimal.%David Hill%Version 1.0.1%12-21-2019In=hex2dec(reshape(In,2,[])');%w=KeyExpansion(key);%state=reshape(In,4,[]);state=AddRoundKey(state,w(:,1:4));for k=2:14    state=SubBytes(state);    state=ShiftRows(state);    state=MixColumns(state);    state=AddRoundKey(state,w(:,4*(k-1)+1:4*k));endstate=SubBytes(state);state=ShiftRows(state);state=AddRoundKey(state,w(:,57:60));Out=state(:);Out=lower(dec2hex(Out(1:length(In)))');%Out=Out(:)';%endfunction state = AddRoundKey(state,w)for k=1:4    state(:,k)=bitxor(state(:,k),w(:,k));endend

计算结果

与我交流(为方便长期交流合作,加友请按要求备注行业/专业,不胜感激))

微信号wx18813053116

常用马甲|Grandfissure

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-02-08 11:04:59 HTTP/2.0 GET : https://f.mffb.com.cn/a/464833.html
  2. 运行时间 : 0.121144s [ 吞吐率:8.25req/s ] 内存消耗:4,577.17kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=fde7ef146c953b0d21f77b6ef128e6a5
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000859s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001545s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000733s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000693s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001295s ]
  6. SELECT * FROM `set` [ RunTime:0.000536s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.002012s ]
  8. SELECT * FROM `article` WHERE `id` = 464833 LIMIT 1 [ RunTime:0.001017s ]
  9. UPDATE `article` SET `lasttime` = 1770519899 WHERE `id` = 464833 [ RunTime:0.017671s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 65 LIMIT 1 [ RunTime:0.000596s ]
  11. SELECT * FROM `article` WHERE `id` < 464833 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001157s ]
  12. SELECT * FROM `article` WHERE `id` > 464833 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.001125s ]
  13. SELECT * FROM `article` WHERE `id` < 464833 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.001548s ]
  14. SELECT * FROM `article` WHERE `id` < 464833 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.002157s ]
  15. SELECT * FROM `article` WHERE `id` < 464833 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.001763s ]
0.124827s