是否可以识别散列类型? [英] Is it possible to identify a hash type?

查看:144
本文介绍了是否可以识别散列类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道你可以比较长度,但许多散列类型具有相同的长度。



有没有一种方法可以识别散列的类型以及它是否被盐渍?



例如:

  hash = 2bf231b0e98be99a969bd6724f42a691 
hash = 4ac5a4ff764807d6ef464e27e4d1bee3
hash = 4d177cec31d658ed22cc229e45d7265e


解决方案

您几乎只能通过长度来识别它。



- 编辑:



显然,如果您可以访问生成哈希的程序,并且您可以提供输入,然后您可以与您计算的某个结果进行比较(假设您知道salt。)



如果您真的很困难,你也可以从正在使用的语言中推断出它(即,如果它是PHP,它很可能是MD5),等等。

但是从技术角度来看,没有办法来识别散列;因为它会对安全目标产生反作用:)(它会占用散列本身中无用的位来执行此识别)。


I know you can compare the length but many hash types have the same lengths.

Is there a way to identify a hash's type and whether it has been salted?

For example:

hash=2bf231b0e98be99a969bd6724f42a691
hash=4ac5a4ff764807d6ef464e27e4d1bee3
hash=4d177cec31d658ed22cc229e45d7265e

解决方案

No; you pretty much can only identify it by the length.

-- Edit:

Obviously, however, if you have access to the program generating the hashes, and you can provide input, then you can compare with some result you also calculate (assuming you know the salt.

If you're really stuck, you can also infer it from the language that's being used (i.e. if it's PHP, it's most likely MD5), and so on.

But from a technical point of view, there is no way to identify a hash; as it would be counter-productive to the goal of security :) (it would take up useless bits in the hash itself to do this identification).

这篇关于是否可以识别散列类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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