Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - h.3
Search - h.3 - List
C++ Base64编码/解码源代码 inline int Base64Encode(char * base64code, const char * src, int src_len = 0) inline int Base64Decode(char * buf, const char * base64code, int src_len = 0) 以上两个函数内联定义在base64.h中,使用时include \"base64.h\" 即可,编码后的长度一般比原文多占1/3的存储空间,为了效率,程序并没有检查目标存储区是否溢出,请保证有足够的存储空间。 -C Base64 encoding / decoding source code inline int Base64Encode (char * base64code, const char * src, int src_len = 0) inline int Base64Decode (char * buf, base64code const char *, int src_len = 0) over two letters few within the definition in conjunction base64.h, when used include "base64.h" can, coding the original length generally occupy more than 1 / 3 of storage space, in order to efficiency, procedures and did not check whether the target storage areas overflow, please ensure that there is sufficient storage space.
Date : 2008-10-13 Size : 5.45kb User : 王晓名

DL : 0
Digital Signature Algorithm (DSA)是Schnorr和ElGamal签名算法的变种,被美国NIST作为DSS(DigitalSignature Standard)。算法中应用了下述参数: p:L bits长的素数。L是64的倍数,范围是512到1024; q:p - 1的160bits的素因子; g:g = h^((p-1)/q) mod p,h满足h < p - 1, h^((p-1)/q) mod p > 1; x:x < q,x为私钥 ; y:y = g^x mod p ,( p, q, g, y )为公钥; H( x ):One-Way Hash函数。DSS中选用SHA( Secure Hash Algorithm )。 p, q, g可由一组用户共享,但在实际应用中,使用公共模数可能会带来一定的威胁。签名及验证协议如下: 1. P产生随机数k,k < q; 2. P计算 r = ( g^k mod p ) mod q s = ( k^(-1) (H(m) + xr)) mod q 签名结果是( m, r, s )。 3. 验证时计算 w = s^(-1)mod q u1 = ( H( m ) * w ) mod q u2 = ( r * w ) mod q v = (( g^u1 * y^u2 ) mod p ) mod q 若v = r,则认为签名有效。   DSA是基于整数有限域离散对数难题的,其安全性与RSA相比差不多。DSA的一个重要特点是两个素数公开,这样,当使用别人的p和q时,即使不知道私钥,你也能确认它们是否是随机产生的,还是作了手脚。RSA算法却作不到。
Date : 2008-10-13 Size : 133.74kb User : wildkaede

DL : 0
/* RSA Demo 1.0 版 * 版权所有 (C) 2004 赵春生 * 2004.04.25 * http://timw.yeah.net * http://timw.126.com * 本程序调用Miracl ver 4.82大数运算库,详见其附带手册。 * P,Q,N,D,E使用RSATool2生成。 */ 编译提示: 一:将Project-Settings-Settings For(All Configuration)-C/C++中Category项的 Precompiled Headers设置成:Automatic use of precompiled headers(图1)。 二:将ms32.lib添加到工程中(图2)。 三:MIRACL是C库。 extern \"C\" { #include \"miracl.h\" #include \"mirdef.h\" } #pragma comment( lib, \"ms32.lib\" )-/ * RSA Demo version 1.0 * Copyright (C) 2004 Zhao Chunsheng 2004.04.25 * * * http://timw.126.com http://timw.yeah.net * The procedures called Miracl ver 4. The majority of computing for 82, as detailed in its fringe manual. * P, Q, N, D, E use RSATool2 generation. * / Compiler Tip : 1 : Project-Settings - Settings For (All Configuration) - C / C Category, of OO Headers set : Automatic use of precompiled headers (Figure 1). 2 : ms32.lib added to the project (Figure 2). 3 : MIRACL C library. Extern "C" (# include "miracl.h" # include "mirdef.h") # pragma comment (lib, "ms32.lib")
Date : 2008-10-13 Size : 334.75kb User : 李湘

DL : 0
/* RSA Demo 1.0 版 * 版权所有 (C) 2004 赵春生 * 2004.04.25 * http://timw.yeah.net * http://timw.126.com * 本程序调用Miracl ver 4.82大数运算库,详见其附带手册。 * P,Q,N,D,E使用RSATool2生成。 */ 编译提示: 一:将Project-Settings-Settings For(All Configuration)-C/C++中Category项的 Precompiled Headers设置成:Automatic use of precompiled headers(图1)。 二:将ms32.lib添加到工程中(图2)。 三:MIRACL是C库。 extern \"C\" { #include \"miracl.h\" #include \"mirdef.h\" } #pragma comment( lib, \"ms32.lib\" )-/ * RSA Demo version 1.0 * Copyright (C) 2004 Zhao Chunsheng 2004.04.25 * * * http://timw.126.com http://timw.yeah.net * The procedures called Miracl ver 4. The majority of computing for 82, as detailed in its fringe manual. * P, Q, N, D, E use RSATool2 generation. * / Compiler Tip : 1 : Project-Settings - Settings For (All Configuration) - C / C Category, of OO Headers set : Automatic use of precompiled headers (Figure 1). 2 : ms32.lib added to the project (Figure 2). 3 : MIRACL C library. Extern "C" (# include "miracl.h" # include "mirdef.h") # pragma comment (lib, "ms32.lib")
Date : 2008-10-13 Size : 168.91kb User : 李湘

DL : 0
/* RSA Demo 1.0 版 * 版权所有 (C) 2004 赵春生 * 2004.04.25 * http://timw.yeah.net * http://timw.126.com * 本程序调用Miracl ver 4.82大数运算库,详见其附带手册。 * P,Q,N,D,E使用RSATool2生成。 */ 编译提示: 一:将Project-Settings-Settings For(All Configuration)-C/C++中Category项的 Precompiled Headers设置成:Automatic use of precompiled headers(图1)。 二:将ms32.lib添加到工程中(图2)。 三:MIRACL是C库。 extern "C" { #include "miracl.h" #include "mirdef.h" } #pragma comment( lib, "ms32.lib" )-/* RSA Demo version 1.0* Copyright (C) 2004 Zhao Chunsheng 2004.04.25*** http://timw.126.com http://timw.yeah.net* The procedures called Miracl ver 4. The majority of computing for 82, as detailed in its fringe manual.* P, Q, N, D, E use RSATool2 generation.*/Compiler Tip : 1 : Project-Settings- Settings For (All Configuration)- C/C Category, of OO Headers set : Automatic use of precompiled headers (Figure 1). 2 : ms32.lib added to the project (Figure 2). 3 : MIRACL C library. Extern "C" (# include "miracl.h"# include "mirdef.h")# pragma comment (lib, "ms32.lib")
Date : 2025-12-16 Size : 334kb User : 李湘

C++ Base64编码/解码源代码 inline int Base64Encode(char * base64code, const char * src, int src_len = 0) inline int Base64Decode(char * buf, const char * base64code, int src_len = 0) 以上两个函数内联定义在base64.h中,使用时include "base64.h" 即可,编码后的长度一般比原文多占1/3的存储空间,为了效率,程序并没有检查目标存储区是否溢出,请保证有足够的存储空间。 -C Base64 encoding/decoding source code inline int Base64Encode (char* base64code, const char* src, int src_len = 0) inline int Base64Decode (char* buf, base64code const char*, int src_len = 0) over two letters few within the definition in conjunction base64.h, when used include "base64.h" can, coding the original length generally occupy more than 1/3 of storage space, in order to efficiency, procedures and did not check whether the target storage areas overflow, please ensure that there is sufficient storage space.
Date : 2025-12-16 Size : 5kb User : 王晓名

H 函数是一个抱文摘要的好算法我们应该好好学习.并且起在电子商务中应用广泛-H function is a summary with a good algorithm we should learn. And with the wider use of e-commerce
Date : 2025-12-16 Size : 196kb User : MKDR

DL : 0
Digital Signature Algorithm (DSA)是Schnorr和ElGamal签名算法的变种,被美国NIST作为DSS(DigitalSignature Standard)。算法中应用了下述参数: p:L bits长的素数。L是64的倍数,范围是512到1024; q:p - 1的160bits的素因子; g:g = h^((p-1)/q) mod p,h满足h < p - 1, h^((p-1)/q) mod p > 1; x:x < q,x为私钥 ; y:y = g^x mod p ,( p, q, g, y )为公钥; H( x ):One-Way Hash函数。DSS中选用SHA( Secure Hash Algorithm )。 p, q, g可由一组用户共享,但在实际应用中,使用公共模数可能会带来一定的威胁。签名及验证协议如下: 1. P产生随机数k,k < q; 2. P计算 r = ( g^k mod p ) mod q s = ( k^(-1) (H(m) + xr)) mod q 签名结果是( m, r, s )。 3. 验证时计算 w = s^(-1)mod q u1 = ( H( m ) * w ) mod q u2 = ( r * w ) mod q v = (( g^u1 * y^u2 ) mod p ) mod q 若v = r,则认为签名有效。   DSA是基于整数有限域离散对数难题的,其安全性与RSA相比差不多。DSA的一个重要特点是两个素数公开,这样,当使用别人的p和q时,即使不知道私钥,你也能确认它们是否是随机产生的,还是作了手脚。RSA算法却作不到。
Date : 2025-12-16 Size : 133kb User : wildkaede

DL : 0
用SHA算法实现对任意文件的hash摘要,并且把hash摘要值(至少为160bit)存入另一个文件,形如: hash inputfile hashvaluefile 说明:SHA算法的实现至少为160bit,或者可以选择256,384或者512的,可以查阅相关资料,按照标准来实现(hash的算法是否正确,可以和网上的标准算法对比,用相同的输入看是否能够得到相同的输出)控制台编程: int main(int argc, char *argv[ ]) -Programme for SHA-1, include the project and .cpp&.h files.Absolutely available
Date : 2025-12-16 Size : 4kb User : Heyyou

C编写,实现字符串摘要、文件摘要两个功能。 里面主要包含3个文件: Md5.cpp、Md5.h、Main.cpp。其中Md5.cpp是算法的代码,里的代码大多是从 rfc-1321 里copy过来的;Main.cpp是主程序。 -C to prepare, to achieve string summary document containing a summary of the two functions. 3 inside the main document contains: Md5.cpp, Md5.h, Main.cpp. Md5.cpp which is the algorithm code, in most of the code is in rfc-1321 from the copy back Main.cpp is the main program.
Date : 2025-12-16 Size : 86kb User : Alabama

embedded SSL client source
Date : 2025-12-16 Size : 1.86mb User : kawait

DES加密聊天工具,共包含3个文件:chat.cpp、des.h、makefile。 编译:命令行模式下,切换到代码所在目录,输入make后回车即可。 运行:命令行模式下输入 ./chat,然后选择程序执行角色(客户端或服务器)。如选择服务器,则程序自动打开端口开始监听;如选择客户端,则需要输入服务器地址。最后输入命令quit退出程序。-DES encrypted chat tool, contains a total of 3 files: chat.cpp, des.h, makefile. Compile: Command line mode, switch to the code directory, type make after the press Enter. Run: command line, type./Chat, and then select the program execution role (client or server). If you choose the server, the program automatically opens the port to start listening If you choose a client, you need to enter the server address. Finally, enter the command quit to exit the program.
Date : 2025-12-16 Size : 6kb User : Sunny kim

DL : 0
C编写,实现字符串摘要、文件摘要两个功能。 里面主要包含3个文件: Md5.cpp、Md5.h、Main.cpp。其中Md5.cpp是算法的代码,里的代码大多是从 rfc-1321 里copy过来的;Main.cpp是主程序。 -Written in C for string Summary, Summary of the two functions. Which mainly contains three files: Md5.cpp, Md5.h, Main.cpp. One Md5.cpp the algorithm code, the code in the most from the rfc-1321 in the copy over Main.cpp is the main program.
Date : 2025-12-16 Size : 86kb User : zaoge

Décrypteur pour PeSpin 0.3 par BeatriX unPESpin 0.3 Release 1 lundi 15 novembre 2004 - 11 h 32 Merci à Cyberbob pour avoir codé PESpin 0.3 - je me suis vraiment beaucoup amusé dessus :) Merci à : Kaine - Cyber DAEMON - R!sc - Gbillou - Thierry The One pour leur soutien, leurs conseils, leur intérêt porté sur ce projet et leurs aides techniques . Cette version ne prend pas en compte l option " protection par mot de passe "- Décrypteur pour PeSpin 0.3 par BeatriX unPESpin 0.3 Release 1 lundi 15 novembre 2004- 11 h 32 Merci à Cyberbob pour avoir codé PESpin 0.3- je me suis vraiment beaucoup amusé dessus :) Merci à : Kaine- Cyber DAEMON- R!sc- Gbillou- Thierry The One pour leur soutien, leurs conseils, leur intérêt porté sur ce projet et leurs aides techniques . Cette version ne prend pas en compte l option " protection par mot de passe "
Date : 2025-12-16 Size : 10kb User : ultrain

DL : 0
利用C\C++实现RSA算法的加、解密运算。 具体包括: 1)利用扩展的Euclid计算 a mod n 的乘法逆元; 2)Miller-Rabin素性测试算法对一个给定的大数进行测试; 3)实现的运算,并计算; 4)利用Euler定理手工计算,并与3)计算的结果对比; 5)实现RSA算法。并对 I LOVE NANJING UNIVERSITY OF AERONAUTICS AND ASTRONAUTICS 加解密。说明:为了方便实现,分组可以小一点,比如两个字母一组。 字母及其数字编码 字母及其数字编码 空格 00 N 14 A 01 O 15 B 02 P 16 C 03 Q 17 D 04 R 18 E 05 S 19 F 06 T 20 G 07 U 21 H 08 V 22 I 09 W 23 J 10 X 24 K 11 Y 25 L 12 Z 26 M 13 -Use of C \ C++ implements the RSA algorithm encryption and decryption operations. These include: 1) using the extended Euclid calculate a mod n multiplicative inverse 2) Miller-Rabin primality testing algorithm for a given test large numbers 3) to achieve the operation, and the calculation 4) the use of Euler Theorem manual calculation, and compared with the results of the calculation 3) 5) implement the RSA algorithm. And I LOVE NANJING UNIVERSITY OF AERONAUTICS AND ASTRONAUTICS encryption and decryption. Description: In order to facilitate the achievement of the packet may be smaller, for example, a group of two letters. Alphabet letters and their digital encoding and digital encoding Spaces 00 N 14 A 01 O 15 B 02 P 16 C 03 Q 17 D 04 R 18 E 05 S 19 F 06 T 20 G 07 U 21 H 08 V 22 I 09 W 23 J 10 X 24 K 11 Y 25
Date : 2025-12-16 Size : 1kb User : 刘洋
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.