相关疑难解决方法(0)

在C++中使用加密流

我想使用一些加密操作(主要是整合检查hashsums).但是我在查找执行此类操作的文档时遇到问题:

bool read(std::istream &in) {
    hasher hv(in);
    // Do some operations on hv as if it was std::istream
    hash_type h = hv.finish ();
    hash_type h2 = read_hash(in);
    return h == h2;
}
Run Code Online (Sandbox Code Playgroud)

PS.它可能是不同的库,只要它a)是GPL-3兼容的b)适用于GNU/Linux

PPS.我并不坚持使用crypto ++,但是我想要与其他C++库具有类似IOStream的行为,以实现互操作性.

c++ cryptography crypto++

3
推荐指数
1
解决办法
3879
查看次数

标签 统计

c++ ×1

crypto++ ×1

cryptography ×1