安卓:加密密码 [英] Android: Encrypt password

查看:166
本文介绍了安卓:加密密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
  存储一个密码

我使用的共享preference来存储密码。是它是安全的保存密码数据,因为它是,或者我有它保存前进行加密。请帮我带样品code。

I am using shared preference to store password. Is it is secure to save the password data as it is, or i have to encrypt it before saving it. Please help me with sample code.

在此先感谢,

推荐答案

您永远不应该直接保存密码,而不是保存密码的哈希值。

You should never save a password directly, instead save a hash of the password.

这篇关于安卓:加密密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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