- 博客(4)
- 收藏
- 关注
原创 基于卷积神经网络的加密方法识别(字符串区分)
import torch, datetime, timeimport torch.nn as nnimport numpy as npfrom sklearn.model_selection import train_test_splitdef get_char_set(): with open('AES.txt') as f: AES = f.read() with open('DES.txt') as f: DES = f.read() .
2021-12-03 09:34:15
1136
原创 基于python的AES,DES随机密钥生成及批量加密
#!/usr/bin/env python# -*- coding=utf-8 -*-"""AES加密解密工具类数据块128位key 为16位iv 为16位,且与key相等字符集utf-8输出为base64AES加密模式 为cbc填充 pkcs7padding"""from Crypto.Cipher import AESfrom Crypto.Cipher import DESfrom pyDes import des, CBC, PAD_PKCS5import binas.
2021-12-03 09:31:37
1806
原创 Python批量生成AES随机密钥并对指定内容进行加密,之后将密钥以及加密结果写入TXT中
#!/usr/bin/env python# -*- coding=utf-8 -*-"""AES加密解密工具类数据块128位key 为16位iv 为16位,且与key相等字符集utf-8输出为base64AES加密模式 为cbc填充 pkcs7padding"""import base64from Crypto.Cipher import AESimport randomdef pkcs7padding(text): """ 明文使用PKCS7填充 .
2021-11-18 09:11:16
1883
原创 CSDN完美打印代码(自用)
(function(){ $("#side").remove(); $("#comment_title, #comment_list, #comment_bar, #comment_form, .announce, #ad_cen, #ad_bot").remove(); $(".nav_top_2011, #header, #navigator").remove(); $(".csdn-side-toolbar,.template-box,.reward-user-...
2021-10-14 09:23:25
387
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人