原本要把數論篇分為上、中和下,三篇。但好像大家都不喜歡看數論 QAQ
加密
解密
舉例
Key = 3
C = vhfxulwb
C_1 = v = 21 -> (21 - 3) mod 26 = 18 = s
C_2 = h = 7 -> (7 - 3) mod 26 = 4 = e
.
.
.
C_8 = b = 1 -> (1 - 3) mod 26 = -2 mod 26 = 24 = y
P = security
P = P_1P_2...P_n
K = [(k_1k_2..k_m), (k_1k_2..k_m), ...] (n不一定等於m)
加密
解密
範例
.
.
.
今天線這樣吧!今天終於辦完活動了,過程意外的順利。好累!先來睡個覺再說吧!