Riwayat Aktivitas

Belum ada riwayat

Hapus Semua Riwayat

Classic Cryptography

Modern Cryptography UI

AFFINE CIPHER

Cipher matematika linear

Reset

Rumus Affine Cipher

Enkripsi:

E(x) = (ax + b) mod 26


Dekripsi:

D(x) = a⁻¹(x - b) mod 26

Penjelasan Affine Cipher

Affine Cipher menggunakan fungsi matematika linear untuk mengubah huruf menjadi cipher text.

Nilai a harus relatif prima dengan 26.

Setiap huruf dikonversi ke angka: A=0, B=1, C=2, dst.