SHA-512有盐问题 [英] SHA-512 with salt problem

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

问题描述

hy朋友'



我在SHA_512算法中遇到问题。我如何区别于另一个用户的用户密码。

意思是'当用户jon输入密码喜欢哈希512将其哈希到这样的4ssf5789sd543s和另一个用户aslam拥有相同的密码然后它意味着'他们都有相同的哈希'

我怎么能彼此区别开来。

使用盐 个别?如果是的话怎么样?





谢谢S。

hy friend''s

i have a problem in SHA_512 algo. how can i differ a user password from another user.
mean''s when a user "jon" enter a password "like" the the hash 512 hash it into something like this"4ssf5789sd543s" and another user "aslam" have the same password then it mean''s they both have same hashe''s
how can i differ it from one another.
using "salt" individually? if yes the how ?


THANK"S .

推荐答案

请看我对这个问题的评论。



是的,但这不是问题,因为服务器部分存储了用户名索引的密码缓存值.Jon和Aslam do不知道他们的密码是否相同,除非有人试图用自己的密码登录另一个密码。同样重要的是没有人能够找到任何原始密码(更确切地说,这就是所谓的不可行)在密码学中),甚至可以访问用户名和密码缓存的存储。



-SA
Please see my comment to the question.

Yes, but this is not a problem, because the server part stores password cache values indexed by user names. Jon and Aslam do not know that their passwords are identical unless one tried to log in representing another one with own password. Also it''s important that no one would be able to find out any of original passwords (more exactly, this is what called "infeasible" in cryptography), even having the access to the storage of user names and password cache.

—SA

这篇关于SHA-512有盐问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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