我开始使用crypto ++ lib,也许我有一些误解。 我不明白为什么下面的代码会产生不好的SHA 256 # include <string>
# include <iostream>
# include "cryptopp/cryptlib.h"
# include <cryptopp/sha.h>
# include <cryptopp/hex.h>
using namespa
这是我的代码: from Crypto.Hash import SHA
<Receive a variable from the user, 'var'>
hashed_var = SHA.new(var).digest()
fp = open("file.txt", 'a')
for i in range(0, len(hashed_var)):
fp.write(hex(or