Preliminary Knowledge Encoding Password Cryptography Related Concepts and Terminology
Preliminary Knowledge ▎Encoding & Password & Cryptography ▎Related Concepts and Terminology
1.Encoding
1. Encoding
(1Morse Code 谍战剧经常出现的Morse Code.《风 声》、《麻雀》、 《U571》 Morse Code是一种早期的数字化通信形 式,但是它不同于现在的只使用0和1两 种状态的二进制代码,它的代码包括五 种:点、划、点和划之间的停顿、每个 字符间短的停顿。短促的点信号“”, 读“滴”(dt);保持一定时间的长信 号 “一”,读“嗒”(Dash)
(1)Morse Code 谍战剧经常出现的Morse Code. 《风 声》、《麻雀》、《U571》 Morse Code是一种早期的数字化通信形 式,但是它不同于现在的只使用0和1两 种状态的二进制代码,它的代码包括五 种:点、划、点和划之间的停顿、每个 字符间短的停顿。短促的点信号“.”, 读“滴”(dit);保持一定时间的长信 号“—”,读“嗒”(Dash)
(I)Morse Code 摩尔斯电码表 字符 电码符号 字符 电码符号 字符 电码符号 A N 1 B 0 2 C P 3 D Q 4 E R 5 F S 6 G T 7 H U 。◆ 8 I V 9 I 界 0 K X ? L Y 一,一 M Z 】
(1)Morse Code
(1)Morse Code 。SOS是国际求救信号的Morse Code是 英文:HELLO EVERYBODY,其Morse Code为:
(1)Morse Code SOS是国际求救信号的Morse Code是 ... --- ... 英文:HELLO EVERYBODY,其Morse Code为: .... . .-.. .-.. --- -....- . ...- . .-. -.-- -... --- -.. -.--
(1)Morse Code You can visit Wikipedia for Morse code: https://en.wikipedia.org/wiki/Morse code However,Morse code is a kind of telegraph code(电报码),not belong to Modern Cryptography(现代密码学)
(1)Morse Code You can visit Wikipedia for Morse code: https://en.wikipedia.org/wiki/Morse_code However, Morse code is a kind of telegraph code( 电 报 码 ) , not belong to Modern Cryptography(现代密码学)
(2)Encoding ASCII Code Standard ASCII characters 十进朝 三进制 行号 十进制 二进制 符号十进制 进制 符号 十进制 进制 符号 0 00000000 NUL 3200100000【空格】6401000000 96 01100000 1 00000001 SOH 33 00100001 65 01000001 A 97 01100001 2 00000010 87X 3400100010 6601000010 98 01100010 6 3 00000011 茗X 35 00100011 6701000011 c 99 01100011 00000100 20T 3600100100 6801000100 0 100 01100100 5 00000101 ENQ 37 00100101 69 01000101 E 101 01100101 6 00000110 ACK 3800100110 70 01000110 102 01100110 7 00000111 BEL 3900100111 7101000111 G 103 01100111 8 00001000 BS 4000101000 7201001000 104 01101000 h 9 00001001 T 4100101001 7301001001 I 105 01101001 10 00001010 LF 4200101010 7401001010 J 106 01101010 11 00001011 43 00101011 × 75 01001011 107 01101011 12 00001100 FF 44 00101100 76 01001100 L 108 01101100 1 13 00001101 CR 4500101101 77 01001101 109 01101101 分 14 00001110 46 00101110 78 01001110 N 110 01101110 n 15 00001111 SI 4700101111 7901001111 0 111 01101111 0 16 00010000 DLE 4800110000 0 80 01010000 112 01110000 17 00010001 DCI 4900110001 1 1 01010001 0 113 01110001 q 18 00010010 DC2 5000110010 2 82 01010010 R 114 01110010 19 00010011 DC3 5100110011 3 8301010011 9 115 01110011 20 00010100 DC4 5200110100 4 84 01010100 T 116 01110100 t 21 00010101 NAK 5300110101 5 85 01010101 117 01110101 22 00010110 5400110110 6 86 01010110 118 01110110 2300010111 ETB 5500110111 8701010111 有 119 01110111 24 00011000 CAN 5600111000 8 88 01011000 X 120 01111000 2500011001 M 5700111001 9 8901011001 121 01111001 y 26 00011010 SUB 5800111010 90 01011010 2 122 01111010 2700011011 Esc 5900111011 9101011011 123 01111011 28 00011100 FS 60 00111100 92 01011100 124 01111100 29 00011101 GS 6100111101 9301011101 125 01111101 30 00011110 RS 62 00111110 > 94 01011110 126 01111110 3100011111 US 6300111111 95 01011111 127 01111111 DEL
(2)Encoding Standard ASCII characters ASCII Code
(2)Encoding ASCⅡCode Extended ASCII characters 高四位 充ASCⅡ闪字符集 1001 1010 1011 100 1101 110 1红 8/6 c732 D748 /64 F/80 氏四位 +制字符+制字符+制 字符+柳字符+制字符+制 字符 +制字符 +莲制字符 0000 128 144 E 160 a 176 192 208 224 240 0001 129 0145 161 177 193L 209 225 0010 2 130 e 146 E 178圈194T 210 226 0011 3 131 a 179 195 211 227 243 0100 4 132 180 196 212 228 244 01 133 81 97 213 229 245 0110 6 134 a 182 23 0 135 1831 199 23 10008 136 68 183 200 216 232 1001 137 185 201 217 233 249 1010 38 186 202 218 234 250 1011 139 1877203T 219 235 251 1i00 140 15 172 %4188J204 220 236 00 252 41 189 205 221 237 D 253 142 A158 174 《190 206 222 238 254 143 A 159 175 》 191 207 223 239 255 BIAN店 注:表中的ASCII字符可以用:LT+“小键盘上的数字键输入
(2)Encoding Extended ASCII characters ASCII Code
(2)Encoding BASE64 Code Base6 Index Char Index Char Index Char Index Char that repres into a 0 A 16 Q 32 g 48 w radix- ecific B 17 R 33 h 49 MIM ctly 6 2 C 18 s 34 50 bits o ore be 3 D 19 T 35 51 repre 4 E 20 U 36 k 0 5 F 21 37 53 6 G 22 38 m 2 7 H 23 39 n 8 24 Y 40 9 25 Z 41 57 5 10 K 26 42 8 6 11 L 27 6 43 59 7 12 M 28 44 8 13 N 29 d 45 61 9 14 30 Q 46 W 6 15 P 31 f 47 V 63
(2)Encoding Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. The term Base64 originates from a specific MIME content transfer encoding. Each Base64 digit represents exactly 6 bits of data. Three 8-bit bytes (i.e., a total of 24 bits) can therefore be represented by four 6-bit Base64 digits. BASE64 Code Index Char Index Char Index Char Index Char 0 A 16 Q 32 g 48 w 1 B 17 R 33 h 49 x 2 C 18 S 34 i 50 y 3 D 19 T 35 j 51 z 4 E 20 U 36 k 52 0 5 F 21 V 37 l 53 1 6 G 22 W 38 m 54 2 7 H 23 X 39 n 55 3 8 I 24 Y 40 o 56 4 9 J 25 Z 41 p 57 5 10 K 26 a 42 q 58 6 11 L 27 b 43 r 59 7 12 M 28 c 44 s 60 8 13 N 29 d 45 t 61 9 14 O 30 e 46 u 62 + 15 P 31 f 47 v 63 /
(2)Encoding BASE64 Code For example: Text M a Source (ASCⅢ) Octets 77(0x4d) 97(0x61) 110(0x6e) Bits 010011010110000101101110 Sextets 19 22 5 46 Base64 Look up Table... encoded Character T W F u Octets 84(0x54) 87(0x57) 70(0x46) 117(0x75) In this case,the bits in source text is just a multiple of6-bits!
(2)Encoding For example: BASE64 Code Source Text (ASCII) M a n Octets 77 (0x4d) 97 (0x61) 110 (0x6e) Bits 0 1 0 0 1 1 0 1 0 1 1 0 0 0 0 1 0 1 1 0 1 1 1 0 Base64 encoded Sextets 19 22 5 46 Look up Table… Character T W F u Octets 84 (0x54) 87 (0x57) 70 (0x46) 117 (0x75) In this case, the bits in source text is just a multiple of 6-bits!