sha512
从文件或字符串创建 SHA512 校验和的类
例子
# include " sha512\sha512.h "
int main ( int argc, char ** argv){
char cstring[] = " Foo baz, testing. " ;
std::string str = cstring;
/* SHA512 from std::string */
printf ( " sha512sum: %s \n\n " , sha512 ( str ). c_str ());
/* SHA512 from c-string */
printf ( " sha512sum: %s \n\n " , sha512 ( cstring, strlen (cstring) ). c_str ());
/* SHA512 from filena
2021-12-20 21:09:33
4KB
C++
1