Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

仿射变换的加解密算法实现

Implementation of encryption and decryption algorithm for affine transformation

原理

$ c=E_{a,b} (m)\equiv am+b \pmod{26} $

$ m=D_{a,b} (c)\equiv a^{-1} (c-b)\pmod{26} $

字母与数字的对应

a b c d e f g h i j k l m
0 1 2 3 4 5 6 7 8 9 10 11 12
n o p q r s t u v w x y z
13 14 15 16 17 18 19 20 21 22 23 24 25

除了在命令行输入字符串实现加解密,本程序还对文件进行加解密。本程序是密码学的课程一个实验。这是一个C++程序,使用的集成开发环境( IDE )是CodeBlocks 20.03 。

Comments ( 0 )

Sign in for post a comment

About

仿射变换的加解密算法实现 Implementation of encryption and decryption algorithm for affine transformation spread retract
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more