Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amaitou/affinecipher
This tool is a versatile implementation of the Affine Cipher, a classical encryption algorithm that combines modular arithmetic and linear algebra. It enables users to encode and decode messages using a pair of keys, offering a straightforward and effective approach to securing information.
https://github.com/amaitou/affinecipher
affine-cipher cryptography python3
Last synced: about 22 hours ago
JSON representation
This tool is a versatile implementation of the Affine Cipher, a classical encryption algorithm that combines modular arithmetic and linear algebra. It enables users to encode and decode messages using a pair of keys, offering a straightforward and effective approach to securing information.
- Host: GitHub
- URL: https://github.com/amaitou/affinecipher
- Owner: amaitou
- License: mit
- Created: 2021-05-23T20:38:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-26T23:20:17.000Z (3 months ago)
- Last Synced: 2024-07-27T00:29:13.100Z (3 months ago)
- Topics: affine-cipher, cryptography, python3
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 23
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
------------------
![Albert_Einstein_Head_H3000x1688](https://user-images.githubusercontent.com/49293816/188544854-5ad5a6a8-38df-4cc7-9840-f012a24bc445.jpg)------------------
## What is Affine Cipher?as **Wikipedia** says: The affine cipher is a type of monoalphabetic substitution cipher, where each letter in an alphabet is mapped to its numeric equivalent, encrypted using a simple mathematical function, and converted back to a letter.
* look at the entire article from here: https://en.wikipedia.org/wiki/Affine_cipher
## Formula```
C = (a * P + b) mod 26
P = (a ^ -1 * (C - b)) mod 26
```
## Guide
```
! Usage: python3 affinecipher.py
* type : {e: encryption, d: decryption}
* string : the text you want to encrypt or decrypt
* a : the first operand of the key
* b : the second operand of the key
```
## Contact Me* [Twitter][_1]
[_1]: https://twitter.com/amait0u