文件名称:SimpleEncryptionAlgorithm
介绍说明--下载内容均来自于网络,请自行研究使用
简单的加密算法,可逆与不可逆
数据加密:
算法1:(不可逆)
将ASCII表中32~~126中的字符,加密后,显示为128~~255的字符.
128~~255的字符会让人看起来头痛些。。。。。。安全.
当ch[?]的值为偶数时:ch[?]=255-ch[?]的个位*10-ch[?]的十位
当ch[?]的值为奇数时: ch[?]=128+ch[?]的个位*10+ch[?]的十位
当ch[?]的值为质数时:ch[?]=128+ch[?]的个位+ch[?]的十位
算法2:(可逆)
当ch[?]的值能被3整除时:ch[?]-=2,否则ch[?]-=3
-Simple encryption algorithm, reversible and irreversible data encryption: Algorithm 1: (irreversible) would be ASCII table 32 ~ ~ 126 characters, encrypted, shown as 128 ~ ~ 255 characters. 128 ~ ~ 255 characters will be looks more headache. . . . . . Security. When ch [?] Even when the value is: ch [?] = 255-ch [?] For a bit* 10-ch [?] 10 when the ch [?] Value is odd: ch [ ?] = 128+ ch [?] for a bit* 10+ ch [?] 10 when the ch [?] the value of prime time: ch [?] = 128+ ch [?] for a bit+ ch [ ?] of 10 Algorithm 2: (reversible) When ch [?] value can be divisible by 3 pm: ch [?]-= 2, otherwise, ch [?]-= 3
数据加密:
算法1:(不可逆)
将ASCII表中32~~126中的字符,加密后,显示为128~~255的字符.
128~~255的字符会让人看起来头痛些。。。。。。安全.
当ch[?]的值为偶数时:ch[?]=255-ch[?]的个位*10-ch[?]的十位
当ch[?]的值为奇数时: ch[?]=128+ch[?]的个位*10+ch[?]的十位
当ch[?]的值为质数时:ch[?]=128+ch[?]的个位+ch[?]的十位
算法2:(可逆)
当ch[?]的值能被3整除时:ch[?]-=2,否则ch[?]-=3
-Simple encryption algorithm, reversible and irreversible data encryption: Algorithm 1: (irreversible) would be ASCII table 32 ~ ~ 126 characters, encrypted, shown as 128 ~ ~ 255 characters. 128 ~ ~ 255 characters will be looks more headache. . . . . . Security. When ch [?] Even when the value is: ch [?] = 255-ch [?] For a bit* 10-ch [?] 10 when the ch [?] Value is odd: ch [ ?] = 128+ ch [?] for a bit* 10+ ch [?] 10 when the ch [?] the value of prime time: ch [?] = 128+ ch [?] for a bit+ ch [ ?] of 10 Algorithm 2: (reversible) When ch [?] value can be divisible by 3 pm: ch [?]-= 2, otherwise, ch [?]-= 3
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SimpleEncryptionAlgorithm.doc