RSA算法 :首先, 找出三个数, p, q, r, 其中 p, q 是两个相异的质数, r 是与 (p-1)(q-1) 互质的数...... p, q, r 这三个数便是 person_key,接著, 找出 m, 使得 r^m == 1 mod (p-1)(q-1)..... 这个 m 一定存在, 因为 r 与 (p-1)(q-1) 互质, 用辗转相除法就可以得到了..... 再来, 计算 n = pq....... m, n 这两个数便是 public_key ,编码过程是, 若资料为 a, 将其看成是一个大整数, 假设 a < n.... 如果 a >= n 的话, 就将 a 表成 s 进位 (s
标签: person_key RSA 算法
上传时间: 2013-12-14
上传用户:zhuyibin
本书以Keil 公司最新版本的C51 编译器为核心,阐述了在Windows 环境下采用单片 机高级语言C51 进行应用系统程序设计的基本原理和方法,详细介绍了Keil C51 的 Windows 集成开发环境Vision 51 和软件仿真器dScope51 的强大功能和具体使用方法。在 Windows 集成开发环境pVision 51 中,可以完成从源程序编写、编译、连接定位到目标文件 的仿真调试等的全部工作。dScope 51 是一种基于Windows 的多窗口软件仿真器,它可以在 完全没有8051 单片机硬件的情况下模拟调试各种应用程序,即使对单片机内部特殊集成功 能的编程,也可以找到对应的模拟窗口。 本书对最新版本C51 编译器新增加的控制命令作了全面介绍;给出了最新C51 运行库 函数及其应用范例;对Keil C51 的各种应用工具,如BL51 连接定位器、A51 宏汇编器、 LIB51 库管理程序以及OH51 符号转换程序等都作了详细介绍;还介绍了单片机实时多任务 操作系统RTX51 及其子集RTX51 TINY 的具体功能与应用方法。 本书强调先进性和实用性。全书各章列举了大量程序实例,并附赠一张配套光盘。因此 本书既适合广大从事单片机应用系统开发研制的工程技术人员的阅读,也可以作为高等工科 院校相应专业大学生或研究生的教学用书。
上传时间: 2015-03-25
上传用户:zxc23456789
Delphi是由Inprise公司推出的面向对象的可视化软件开发工具。本书共分三部分、16章,主要介绍Delphi 集成开发环境,对象Pascal语言、组件、通用编程技术、动态链接库、多线程、多媒体编程、数据库编程、网络编程和Windows API编程等。
上传时间: 2015-04-15
上传用户:liglechongchong
JBuilder是Borland公司所推出的Java语言编程工具,它具有一个功能强大的集成开发环境,可以快速创建各种Java应用程序。本书针对最新版本JBuilder 3提供了使用JBuilder开发数据库应用程序、创建分布式应用程序以及编写JavaBean组件的高级材料,包括JBuilder的DataExpress数据库体系结构的信息,主数据组件和类之间的相互关系,怎样使用DataModeler和Application Generator创建数据驱动的客户机/服务器应用程序等内容。通过阅读本书,可以轻松地掌握Java语言,并能熟练地使用JBuilder 3来编写各种小应用程序和软件组件。
上传时间: 2013-11-26
上传用户:253189838
在编写程序中还用到了开发工具Borland.C++.Builder.6.0,是目前唯一完美集成 COBRA 与 COM/COM+ 的 C++ 集成开发环境,可以快速开发具有 Web 服务支持功能的电子商务应用程序,全球率先实现跨平台、高效可视化开发 Windows/Linux 应用程序,兼容 CLX、VCL 和 Borland C++ for Linux,增强了对于 Microsoft Visual C++ 源程序的兼容程度,提供 MFC 6.0 版与 ATL 3.0 版函数库。
上传时间: 2014-01-10
上传用户:lunshaomo
《JBulider 开发人员指南(中文)》 JBuilder是Borland公司所推出的Java语言编程工具,它具有一个功能强大的集成开发环境,可以快速创建各种Java应用程序。本书针对最新版本JBuilder 3提供了使用JBuilder开发数据库应用程序、创建分布式应用程序以及编写JavaBean组件的高级材料,包括JBuilder的DataExpress数据库体系结构的信息,主数据组件和类之间的相互关系,怎样使用DataModeler和Application Generator创建数据驱动的客户机/服务器应用程序等内容。通过阅读本书,可以轻松地掌握Java语言,并能熟练地使用JBuilder 3来编写各种小应用程序和软件组件。 本书共37章,详细介绍了Jbuilder的使用
标签: JBulider JBuilder Borland Java
上传时间: 2013-12-26
上传用户:jhksyghr
数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no
上传时间: 2015-05-21
上传用户:daguda
源代码\用动态规划算法计算序列关系个数 用关系"<"和"="将3个数a,b,c依次序排列时,有13种不同的序列关系: a=b=c,a=b<c,a<b=v,a<b<c,a<c<b a=c<b,b<a=c,b<a<c,b<c<a,b=c<a c<a=b,c<a<b,c<b<a 若要将n个数依序列,设计一个动态规划算法,计算出有多少种不同的序列关系, 要求算法只占用O(n),只耗时O(n*n).
上传时间: 2013-12-26
上传用户:siguazgb
The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition
标签: government streamline important alphabet
上传时间: 2015-06-09
上传用户:weixiao99
JBulider 开发人员指南(中文): JBuilder是Borland公司所推出的Java语言编程工具,它具有一个功能强大的集成开发环境,可以快速创建各种Java应 用程序。本书针对最新版本JBuilder 3提供了使用JBuilder开发数据库应用程序、创建分布式应用程序以及编写 JavaBean组件的高级材料,包括JBuilder的DataExpress数据库体系结构的信息,主数据组件和类之间的相互关系, 怎样使用DataModeler和Application Generator创建数据驱动的客户机/服务器应用程序等内容。通过阅读本书, 可以轻松地掌握Java语言,并能熟练地使用JBuilder 3来编写各种小应用程序和软件组件。
标签: JBulider JBuilder Borland Java
上传时间: 2015-06-09
上传用户:miaochun888