CSHA1

码农软件 · 软件分类 · 加密/解密软件包 · 2019-10-01 06:26:46

软件介绍

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

本文地址:https://codercto.com/soft/d/15774.html

PHP&MySQL Web数据库应用开发指南

PHP&MySQL Web数据库应用开发指南

Hugb E. Williams、David Lane / 谢君英 / 中国电力出版社 / 2003-5 / 69.00元

一起来看看 《PHP&MySQL Web数据库应用开发指南》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具