- shudu2 一个可以计算数独游戏的C++程序
- DislinDataPlotLibb DISLIN data plotting library manual. This manual describes the data plotting library DISLIN written in the programming languages Fortran andC.ThenameDISLINisanabbreviationforDevice
- 34200a_au1200_mtp_appnote au1200 mtp 应用笔记
- chat 聊天室入门程序
- Untitled FDTD程序关于一维时域有限差分法(分层介质
- hello 智能水位传感器与变送器设计
文件名称:SimpleEncryptionAlgorithm
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:6.56kb
-
已下载: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 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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.