使用C / C ++使用SHA256加密文件 [英] encrypt file with SHA256 using C/C++
本文介绍了使用C / C ++使用SHA256加密文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用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屋!
查看全文