English 中文(简体)
冷藏盐
原标题:coldfusion salting my hash

冷漠 与数据库相比,用户密码密码与用户和服务器之间密码加密的最佳方法是什么?

见http://pajhome.org.uk/code/md5/index.html。

但是,如果用户没有 j印,可以做些什么?

最佳回答

这些问题并非是冷战时期的具体内容,但我认为我必须指出:

  • Do the hash server-side.

洗 The点是,要说明向服务器发送什么,以便制作与亚洲开发银行相匹配的座标。 如果你把客户的扼杀与非行的条目相匹配,那么你就重新打败了这一目的。

  • Don t use MD5.

它破裂。 有一些失败的方法。 不用。

  • If you re worried about the password being exposed on the way to the server, use TLS.

TLS的目的在于使客户与服务器之间的通信向任何其他人开放。 最大的问题是最近遭受的贝特亚袭击,如果你正确执行,那就赢得了工作。

  • Use a secure hash like SHA-256.

我们知道,SHA-256非常安全。 众所周知的袭击减少了2个轨道的时间复杂性,使攻击成为现实。

  • Use a random salt, unique to each user.

2个半轨道空间的预定雨水表将包含256个储存的排泄物,2个^256个空间将多得多。 然而,由于出生日的问题,可以想象,如果你不给他们的海螺,你的一些用户账户可能会受损。

  • Hash multiple times. On the order of thousands of times.

如果贵国的行文受到损害,则“散列”可能意味着你的平均用户密码在几年内找到。 如果你有数千次,这意味着数千年。

还要补充几点,以纠正它认为的误解:

  • A cryptographic hash is one-way. You can t decrypt it. If you find a practical way to decrypt it, then you will become rich and (in)famous.
  • Standard HTTP is not secure. Anyone can eavesdrop and intercept your password that is being POSTed in plaintext, or hashed. If your server doesn t demand an encrypted connection for sensitive data, you re asking for a replay attack (http://en.wikipedia.org/wiki/Replay_attack).
  • You can make your own SSL certificate. If you re worried about your users seeing "this SSL Cert is self signed! Oh noes!" and being scared off, either do without and take the risk, or cough up the cash.
问题回答

暂无回答




相关问题
Extend Contacts application on Android to provide encryption

I want to encrypt individual contacts stored by the Contacts application on Android based on user s preference. So, I am thinking I ll have to hook/extend the Contacts application before the it stores ...

Make md5 strong

Im making a website that will intergrate with game that only support md5 hashing metod (atm). Which ofc is not especially safe anymore. But how could i make it stronger? Should I just generate long ...

How to Pack/Encrypt/Unpack/Decrypt a bunch of files in Java?

I m essentially trying to do the following on a Java/JSP-driven web site: User supplies a password Password is used to build a strongly-encrypted archive file (zip, or anything else) containing a ...

Thread & Queue vs Serial performance

I though it ll be interesting to look at threads and queues, so I ve written 2 scripts, one will break a file up and encrypt each chunk in a thread, the other will do it serially. I m still very new ...

Convert PHP encryption code to C#

I m trying to convert this piece of code from PHP to C#. It s part of a Captive Portal. Could somebody explain what it does? $hexchal = pack ("H32", $challenge); if ($uamsecret) { $newchal = ...

Encryption: how to have 1 iv despite multiple fields

I ve been stuck trying to arrive at a best solution for this for a while. I know that an initialization vector has to be unique for each item being encrypted. So if I m encrypting an address and I ...

热门标签