All Projects → Lelouche01 → AffineCipher

Lelouche01 / AffineCipher

Licence: other
A Python Tool Performs Both Encryption And Decryption Using Affine Cipher

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to AffineCipher

secretpy
Classical ciphers: Caesar, ADFGX, ROT13 and etc.
Stars: ✭ 40 (+90.48%)
Mutual labels:  affine-cipher
cipher-crypt
A cryptographic tomb of ciphers forgotten by time.
Stars: ✭ 36 (+71.43%)
Mutual labels:  affine-cipher

Albert_Einstein_Head_H3000x1688


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.

Formula

  C = (a * P + b) mod 26
  P = (a ^ -1 * (C - b)) mod 26

Guide

 ! Usage: python3 affinecipher.py <type> <string> <a> <b>
  
* type    : {e: encryption, d: decryption}
* string  : the text you want to enrypt or decrypt
* a       : the first operand of the key
* b       : the second operand of the key

Contact Me

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].