- 授权协议: CPOL
- 开发语言: C/C++
- 操作系统: 跨平台
- 软件首页: http://www.codeproject.com/Articles/2463/CSHA1-A-C-Class-Implementation-of-the-SHA-1-Hash-A
软件介绍
CSHA1 是实现快速 SHA1 安全哈希算法的 C++ 类库。
示例代码:
CSHA1 sha1;
sha1.Update(string0, strlen(string0));
sha1.Update(string1, strlen(string1));
sha1.Update(binary2, uSizeOfBufferBinary2);
sha1.Update(binary3, uSizeOfBufferBinary3);
sha1.Final();
sha1.ReportHash(szReport, CSHA1::REPORT_HEX_SHORT);
// or
sha1.GetHash(binaryArray);
CSHA1 sha1;
sha1.HashFile("TheFile.cpp"); // Hash in the contents of the file
// 'TheFile.cpp'
sha1.Final();
sha1.ReportHash(szReport, CSHA1::REPORT_HEX); // Get final hash as
// pre-formatted string
// or
sha1.GetHash(binaryArray); // Get the raw message digest bytes to a
// temporary buffer
Clever Algorithms
Jason Brownlee / lulu.com / 2012-6-15 / USD 37.99
Download : http://www.lulu.com/product/file-download/clever-algorithms-nature-inspired-programming-recipes/14696557 Read free on line:http://www.cleveralgorithms.com/nature-inspired/index.html T......一起来看看 《Clever Algorithms》 这本书的介绍吧!
HTML 压缩/解压工具
在线压缩/解压 HTML 代码
XML、JSON 在线转换
在线XML、JSON转换工具
