文件名称:SimpleEncryptionAlgorithmReversibleAndIrreversible
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:6.45kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
简单的加密解密算法,可逆与不可逆
数据加密:
算法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 and decryption algorithms, reversible and non-reversible data encryption: Algorithm 1: (not reversible) to ASCII table 32 ~ ~ 126 characters, encrypted, shown as 128 ~ ~ 255 characters. 128 ~ ~ 255 characters will people seem more headaches. . . . . . Security. When the ch [?] Even when the value is: ch [?] = 255-ch [?] Bits of the* 10-ch [?] 10 when the ch [?] Value is odd: ch [ ?] = 128+ ch [?] bit of a* 10+ ch [?] 10 when the ch [?] the value of prime number when: ch [?] = 128+ ch [?] the single-digit+ 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 and decryption algorithms, reversible and non-reversible data encryption: Algorithm 1: (not reversible) to ASCII table 32 ~ ~ 126 characters, encrypted, shown as 128 ~ ~ 255 characters. 128 ~ ~ 255 characters will people seem more headaches. . . . . . Security. When the ch [?] Even when the value is: ch [?] = 255-ch [?] Bits of the* 10-ch [?] 10 when the ch [?] Value is odd: ch [ ?] = 128+ ch [?] bit of a* 10+ ch [?] 10 when the ch [?] the value of prime number when: ch [?] = 128+ ch [?] the single-digit+ ch [ ?] of 10 Algorithm 2: (reversible) when ch [?] value can be divisible by 3 pm: ch [?]-= 2, otherwise, ch [?]-= 3
相关搜索: 可逆 加密
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SimpleEncryptionAlgorithmReversibleAndIrreversible.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.