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

4. Affine Cipher (encoder / decoder) example ( Enter your problem )

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





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

.