8000 GitHub - sukhdev01/Implementation-of-Affine-Cipher: The affine cipher is a combination of additive cipher and multiplicative cipher. Plain text to cipher text and vice-versa codes in python. · GitHub
[go: up one dir, main page]

Skip to content

sukhdev01/Implementation-of-Affine-Cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Implementation-of-Affine-Cipher

The affine cipher is a combination of additive cipher and multiplicative cipher (Link for more info https://www.geeksforgeeks.org/traditional-symmetric-ciphers/)

C = [(P * a) + b] mod n        # C = Chiper text , P = Plain text, n = 26 (length of alphabets)
P = [(C – b) * a^(-1) ] mod n     # (a,b) two keys are used for Affine Cipher.

Commented Code for better understanding.

About

The affine cipher is a combination of additive cipher and multiplicative cipher. Plain text to cipher text and vice-versa codes in python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

0