开发者

encrypt file with SHA256 using C/C++

开发者 https://www.devze.com 2022-12-24 16:43 出处:网络
How c开发者_Python百科an I encode a file using sha256 and c/c++ ??? Thanks!SHA 256 stands for Secure Hash Algorithm ! It will only produce the hash of a given file . You can\'t retrieve the original f

How c开发者_Python百科an I encode a file using sha256 and c/c++ ??? Thanks!


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.

If you want to do encryption/decryption AES would be a better solution. Everything you need is in OpenSSL.


If you don't know what SHA is for, then you better ask someone who knows this stuff instead of doing it yourself. Even if you use a given library, chances are very high that you will produce snake oil. Security depends on much more than calling some encryption functions.

0

精彩评论

暂无评论...
验证码 换一张
取 消