Home > College Algebra > Ciphers > Affine Cipher (encoder / decoder) example

4. Affine Cipher (encoder / decoder) example ( Enter your problem )
  1. Examples
Other related methods
  1. A1Z26 Cipher (Letter to number Cipher)
  2. ADFGVX Cipher
  3. ADFGX Cipher
  4. Affine Cipher
  5. Atbash Cipher
  6. Autokey Cipher / Autoclave Cipher
  7. Bacon Cipher
  8. Beaufort Cipher
  9. Bifid Cipher
  10. Caesar Cipher
  11. Chaocipher
  12. Columnar transposition Cipher
  13. Nihilist Cipher
  14. Polybius Square Cipher
  15. Rail fence Cipher
  16. ROT-5 Cipher
  17. ROT-13 Cipher
  18. ROT-18 Cipher
  19. ROT-47 Cipher
  20. ROT-N Cipher
  21. Running Key Cipher
  22. Substitution Cipher
  23. Tap code Cipher
  24. Trifid Cipher
  25. Trithemius Cipher
  26. Vigenere Cipher

3. ADFGX Cipher
(Previous method)
5. Atbash Cipher
(Next method)

1. Examples





1. Affine Cipher encoder

Text : ABCD efghi
Slope (A) : 3
Intercept (B) : 5
Alphabet : abcdefghijklmnopqrstuvwxyz


Solution:
The Affine cipher is a cipher, where each letter of plaintext is mapped to its numeric equivalent and then encrypted using a linear function y=(ax+b) mod m and then converted back to a letter.

Alphabet = abcdefghijklmnopqrstuvwxyz

Plaintextabcdefghijklmnopqrstuvwxyz
x012345678910111213141516171819202122232425
(3x + 5)58111417202326293235384144475053565962656871747780
(3x + 5) mod 26581114172023036912151821241471013161922252
Ciphertextfiloruxadgjmpsvybehknqtwzc

Plaintext : ABCD efghi
Slope (a) : 3
Intercept (b) : 5
Ciphertext : FILO ruxad

2. Affine Cipher encoder

Text : hello world
Slope (A) : 3
Intercept (B) : 5
Alphabet : abcdefghijklmnopqrstuvwxyz


Solution:
The Affine cipher is a cipher, where each letter of plaintext is mapped to its numeric equivalent and then encrypted using a linear function y=(ax+b) mod m and then converted back to a letter.

Alphabet = abcdefghijklmnopqrstuvwxyz

Plaintextabcdefghijklmnopqrstuvwxyz
x012345678910111213141516171819202122232425
(3x + 5)58111417202326293235384144475053565962656871747780
(3x + 5) mod 26581114172023036912151821241471013161922252
Ciphertextfiloruxadgjmpsvybehknqtwzc

Plaintext : hello world
Slope (a) : 3
Intercept (b) : 5
Ciphertext : armmv tvemo





This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here



3. ADFGX Cipher
(Previous method)
5. Atbash Cipher
(Next method)





Share this solution or page with your friends.
 
 
Copyright © 2026. All rights reserved. Terms, Privacy
 
 

.