# AffineTransform **Repository Path**: zebulon2020/affine-transform ## Basic Information - **Project Name**: AffineTransform - **Description**: 仿射变换的加解密算法实现 Implementation of encryption and decryption algorithm for affine transformation - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-01 - **Last Updated**: 2022-06-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 仿射变换的加解密算法实现 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 。**