使用C / C SHA256加密文件++ [英] encrypt file with SHA256 using C/C++
本文介绍了使用C / C SHA256加密文件++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎样才能连接code。使用SHA256和C / C ++的文件?
谢谢!
How can I encode a file using sha256 and c/c++ ??? Thanks!
推荐答案
SHA 256 代表安全哈希算法!它只会产生一个给定文件的哈希值。你不能检索一个给定的哈希值,否则哈希函数都是没用的原始文件。
SHA 256 stands for Secure Hash Algorithm ! It will only produce the hash of a given file . You can't retrieve the original file from a given hash otherwise hash functions are useless.
如果你想要做的加密/解密 AES 将是一个更好的解决方案。你需要的一切是 OpenSSL的。
If you want to do encryption/decryption AES would be a better solution. Everything you need is in OpenSSL.
这篇关于使用C / C SHA256加密文件++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文