scrypt C 库
我目前正在开发一个 C 应用程序,我需要在其中对用户的密码进行哈希处理。我知道 scrypt 目前是“散列”密码的最佳方法之一(受内存限制,速度慢),但我似乎找不到一个简单的跨平台 C 库可以为我做到这一点。
而且,由于我既不是 C 专家,也不是密码学/哈希专家,我担心自己这样做会导致系统出现一些明显的缺陷(很容易出错)。
那么,是否有一个 C 库可以做到这一点,或者如果没有,其他库可以实现类似的解决方案吗? (bcrypt 可以工作,尽管不如 scrypt 好,...)
I'm currently developing a C app in which I'll need to hash user's passwords. I know scrypt is currently one of the best methods to "hash" passwords (memory-bound, slow), but I can't seem to find a simple cross-platform C library that would do it for me.
And, since I'm neither a C expert or a cryptography/hashing expert, I'm afraid doing it myself will induce some obvious flaws in the system (it's easy to get these things wrong).
So, is there a C library that can do that, or, if not, other libraries that would implement similar solutions ? (bcrypt would work, although not as good as scrypt, ...)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
谷歌说是:scrypt_1.1.6 .orig.tar.gz
(相关文件似乎在
lib
子文件夹中)Google says yes: scrypt_1.1.6.orig.tar.gz
(the relevant files seem to be in the
lib
subfolder)