最古典:Caesar's Cipher Plain b c d e h n Cipher D E F G H K L M P Plain n 0 p t U 0 2 Cipher Q R S T U X Z A B C a b d e h i k m 0 1 2 3 4 5 6 7 8 9 10 11 12 n 0 P 9 u U w E y 13 14 15 1617 18 19 20 21 22 23 2425 Cipher Plain +3mod 26 你试试:NKH GLH LV FDVW The die is cast!
最古典: Caesar’s Cipher Cipher = Plain + 3mod 26 你试试: WKH GLH LV FDVW The die is cast!
Transformations An enciphering transformation (also called an enciphering function)is a bijective function Ee:M→e, where the key eE K uniquely determines Ee acting upon plaintert message units m E M to get ciphertert message units Ee(m)=c∈C. A deciphering transformation (or deciphering function)is a bijective function Da:CM, which is uniquely determined by a given key d E K,acting upon ciphertert message units c Ee to get plaintert message units Da(c)=m. The application of Ee to m,namely the operation Ee(m),is called enciphering, encoding,or encrypting m EM,whereas the application of Da to c is called deciphering,decoding,or decrypting ceC
Transformations
Cryptosystem A cryptosystem is composed of a set (Ee:eEX} consisting of enciphering transformations and the corresponding set (Ee:eeX)={Da:deX) of deciphering transformations.In other words,for eacheK,there erists a unique dK such that Da=E,so that Da(Ee(m))=m for all mM. The keys (e,d)are called a key pair where possibly e=d.A cryptosystem is also called a cipher
Cryptosystem
Kerckhoffs'Rules for Field Ciphers 1.The cryptosystem should be practically unbreakable (breakable in theory, perhaps,but not in practice). 2.A compromised cryptosystem should not inconvenience the correspondents. (This is the one from which his principle,displayed on page 96,seems to be derived since it says that the enemy may know the cryptosystem,but one should still be able to send messages since the enemy cannot cryptanalyze with this knowledge and without the key.) 3.The key should be easy to both remember and change at will. 4.Cryptosystems must be amenable to being sent by telegraph. 5.The mechanisms of the cryptosystem must be easily portable and entirely operable by a single entity. 6.The cryptosystem must be easy to use without reference to any manuals or the need for deep mental effort
古典密码:德国陆军强于恺撒 The German ADFGVX Field Cipher A D G X Plaintext:field cipher A B 3 R D ↓ F E H DF AX FG AV GF FA AX VX FX FG AG G R F L E X D F A X X A G F X F 你试试: X F G V XFVAXAFFGXFFGXFXFXXGDXDAFGVA G F G D A V X X X X A F F
古典密码:德国陆军强于恺撒 Plaintext: field cipher key 你试试: R I F L E D F A X X A G F X F F X F G V G F G D A V X X X X A F F