Location:
Search - bcd.r
Search list
Description: 移位密码、代换密码的加密及解密
实现移位密码:k表示26个字母向前循环位移的字符个数
加密:
输入:k,以及小写表示的明文字母,输出:大写字母表示的密文
解密:输入: k,以及大写字母表示的密文,输出:小写字母表示的明文
例如,当k=11时
明文:wewillmeetatmidnight
密文:HPHTWWXPPELEXTOYTRSE
实现代换密码
例如输入密匙guangzhouuniversity,则建立字母对应关系:
a b c d e f g h i j K l m
G U A N Z H O I V E R S T
n o p q r s t u v w X y z
Y B C D F J K L M P Q W X
字母对应关系的说明:把密匙按照a-z的顺序对应,去掉重复字母,如guangzhouuniversity中的g第二次出现时被滤掉, 在n对应Y之后,把在密匙中没出现过的其他字母按顺序排列:BCDFJ……
-translocation password substitution password encryption and decryption of achieving shift Password : k said 26 letters forward displacement cycle of the number of characters encryption : Admission : k, and explicitly expressed in lowercase letters, output : capital letters said the ciphertext declassified : Admission : k, and the uppercase letters dense text output : lowercase letters explicitly said for example, when k = 11:00 explicit : wewillmeetatmidnight dense text : HPHTWWXPPELEXTOYTRSE achieve import substitution such as password key guangzho uuniversity, the establishment of correspondence between letters : a b c d e f g h i j k l m G U A N Z H O R E V I S T n o p q r s t u v w x y z Y B C D F J K L M P Q W X correspondence between letters Note : In accordance with a key put-z corr
Platform: |
Size: 8192 |
Author: |
Hits:
Description: MCU:c8051f040用自带的IIC控制器读写实时钟芯片PCF8563,该驱动代码接口简单,已完成BCD码到十进制码转换.-MCU: c8051f040 use IIC built-in controller to read and write real-time clock chip PCF8563, the driver code interface is simple, has completed the BCD code to decimal conversion code.
Platform: |
Size: 1024 |
Author: 薛佳元 |
Hits:
Description: 表达式.表达式规则:
* 任意字符串或者没有
? 任意一个
\ 转义符
[,] 或者,例如[abc,bcd]
(?-?) 单个字符范围
\t,\r,\n-my regular expression
Platform: |
Size: 2048 |
Author: huangyi |
Hits:
Description: 硬件应用,用BCD译码数码管显示数字,数码显示-Decoding digital display digital
Platform: |
Size: 27648 |
Author: 唐 |
Hits: