如何使用carchive安全地存储密码 [英] How to store passwords securely using carchive

查看:78
本文介绍了如何使用carchive安全地存储密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个需要在文件中存储密码的应用程序。我打算使用CArchive。我想在保存之前加密数据。

谷歌搜索之后我认为BCryptEncrypt是唯一的选择。哪种算法最适合密码保存。请指教。请提供任何示例代码



我尝试过:



需要帮助使用BCryptENcrypt API

Iam creating an application that requires to store passwords in file. Iam planning to use CArchive. I want to encrypt the data before saving.
After googling i think BCryptEncrypt is the only option. Which algorithm is best for password saving. Please advice. Please provide any sample code also

What I have tried:

Need help with usage of BCryptENcrypt API

推荐答案

取决于:如果这些是人们用来登录您的应用程序的密码,那么您根本不应加密它们:他们应该被改为。有一个解释为什么和有什么区别在这里:密码存储:如何做到这一点。 [ ^ ] - 代码是C#,但它很明显,不应该是翻译的问题。
Depends: if these are the passwords that people will use to log into your application, then you should not encrypt them at all: they should be hashed instead. There is an explanation of why and what the difference is here: Password Storage: How to do it.[^] - the code is C#, but it's pretty obvious and shouldn't be a problem to translate.


这篇关于如何使用carchive安全地存储密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆