交个朋友吧
摘要: 1. 古典密码 1.1替换法 单标替换:明文、密文使用同一张表 多表替换: 1.2移位法 按字母在字母表中的位置进行移动 凯撒密码 代码实现:链接 1.3 解密 频率分析法 在不知秘钥的情况下去推测,例如:E出现的概率最高 2.近代密码学 Enigma密码机:机器层面的“移位”、“替换” 3.现代密 阅读全文
posted @ 2020-11-07 20:58 PamShao 阅读(448) 评论(0) 推荐(0)
摘要: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_NUM 10240 void count(char* n) { int i = 0, s[26 阅读全文
posted @ 2020-11-07 19:13 PamShao 阅读(253) 评论(0) 推荐(0)
摘要: #include <stdio.h> int main() { // 凯撒加密,明文中字母按字母表左移或者右移三位,这里右移 char input[6] = "hello"; char output[6]; int key = 3; int i,j; for (i = 0; i < 5; i++) 阅读全文
posted @ 2020-11-07 19:09 PamShao 阅读(315) 评论(0) 推荐(0)