View the letters as elements of Z/(26). The shift by 3, say, is the encryption function
E(x) ≡ x + 3 mod 26. It is decrypted with D(y) ≡ y − 3 mod 26.
We can get something a bit more mathematically interesting than a shift cipher by
allowing scaling before translating: E(x) = ax + b, where (a, 26) = 1. A plain shift has
a = 1. Suppose a = 5 and b = 3. Then E(x) ≡ 5x+3 mod 26, so letting x = 1, 2, 3, . . . , 25, 0
gives the encoding
A 7→ H, B 7→ M, . . . , Z 7→ C.
View the letters as elements of Z/(26). The shift by 3, say, is the encryption functionE(x) ≡ x + 3 mod 26. It is decrypted with D(y) ≡ y − 3 mod 26.We can get something a bit more mathematically interesting than a shift cipher byallowing scaling before translating: E(x) = ax + b, where (a, 26) = 1. A plain shift hasa = 1. Suppose a = 5 and b = 3. Then E(x) ≡ 5x+3 mod 26, so letting x = 1, 2, 3, . . . , 25, 0gives the encodingA 7→ H, B 7→ M, . . . , Z 7→ C.
การแปล กรุณารอสักครู่..

ดูตัวอักษรที่เป็นองค์ประกอบของ Z / (26) การเปลี่ยนแปลงโดย 3 กล่าวว่าเป็นฟังก์ชั่นการเข้ารหัส
E (x) ≡ x + 3 สมัย 26 มันจะถูกถอดรหัสกับ D (Y) ≡ Y - 3 mod 26.
เราสามารถได้รับบางสิ่งบางอย่างมากขึ้นอีกนิดทางคณิตศาสตร์ที่น่าสนใจกว่าตัวเลขการเปลี่ยนแปลง โดย
การอนุญาตให้ปรับก่อนที่จะแปล: E (x) = ขวาน + B ที่ (26) = 1 กะธรรมดามี
A คือ 1. สมมติว่า A = 5 และ B = 3 แล้ว E (x) ≡ 5x + 3 mod 26 ดังนั้นปล่อยให้ x = 1, 2, 3, . . , 25, 0
จะช่วยให้การเข้ารหัสที่
7 → H, B 7 → M, . . , Z 7 →ซี
การแปล กรุณารอสักครู่..

ดูจดหมายที่เป็นองค์ประกอบของ Z / ( 26 ) เปลี่ยนจาก 3 , พูด , ฟังก์ชันการเข้ารหัสE ( X ) x + 3 ≡ mod 26 มันถูกถอดรหัสด้วย D ( Y ) ≡ y − 3 mod 26เราสามารถเอาสิ่งที่เป็นบิตเพิ่มเติมทางคณิตศาสตร์ที่น่าสนใจกว่าเปลี่ยนรหัสโดยให้ปรับก่อนแปล : E ( X ) = ax + b , ( , 26 ) = 1 กะแบบธรรมดาได้A = 1 สมมติ = 5 และ B = 3 แล้ว E ( X ) ≡ 5x + 3 mod 26 , ดังนั้นให้ x = 1 , 2 , 3 , . . . . . . . . 25 , 0ให้เข้ารหัส7 → keyboard - key - name H , B 7 → keyboard - key - name M . . . . . . . . , Z 7 → keyboard - key - name C
การแปล กรุณารอสักครู่..
