01 2022 档案

python AES加密
摘要:使用的包: pycryptodome 安装 pip install pycryptodome 导入 : from Crypto.Cipher import AES import base64 import random import secrets 基本参数 mode = 2 # mode 1:EC 阅读全文

posted @ 2022-01-31 09:55 秋不语 编辑

python rsa加密
摘要:rsa 加密,是一个非对称加密,python中有多个 库可以使用,在此使用rsa库存 pip install rsa 假如使用4096 bit的密钥, 加密时每次可加密的字符长度是4096/8-11=501bytes,加上自身带的11bytes数据, 加密后的密文长度是512bytes 密钥长度越长 阅读全文

posted @ 2022-01-26 20:43 秋不语 编辑

python zip压缩与解压
摘要:使用的模块:zipfile import zipfile 压缩: 生成zipfile对象: fs = zipfile.ZipFile(targetfilepath,'w,zipfile.ZIP_LZMA) targetfilepath:压缩后的文件路径,带文件名 ZIP_LZMA:压缩算法,该算法比 阅读全文

posted @ 2022-01-26 17:32 秋不语 编辑

Linux Nginx 虚拟主机 日志配置 访问控制与认证 状态监控
摘要:Nginx虚拟主机 1、基于多IP的方式 [root@web01 conf.d]# cat game2.conf server { listen 80; server_name 192.168.15.7; location / { root /opt/Super_Marie; index index 阅读全文

posted @ 2022-01-06 21:28 秋不语 编辑

Linux Nginx 配置项
摘要:web服务器软件 1、apache网络模型selectpollepoll 2、Nginx 官网:https://nginx.org/软件:https://nginx.org/download/ 部署Nginx 1、yum安装 [root@web01 ~]# vim /etc/yum.repos.d/ 阅读全文

posted @ 2022-01-06 14:26 秋不语 编辑

< 2025年3月 >
23 24 25 26 27 28 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 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示