0

所有小写​​和大写,所有数字,点和斜线。我错过了什么吗?

这似乎是在 Google 上找到的一个非常简单的问题,但实际上我还没有找到任何关于它的信息 :(

编辑,如果有人误解,输出可以有什么字符。我不是在问我可以散列什么样的东西,我问的是散列是什么样的。

4

2 回答 2

2

DES (and many other encryption algorithms) work on a bit level - it has no concept of what's a valid character and what isn't, the range of the output characters can be anything from 0x00 to 0xFF.

Any output to the contrary is likely just characters not supported by whatever you're trying to display the output with, which are typically replaced by some predefined character.

The output can also be converted to hex characters for cosmetic or storage purposes (I'm not sure whether the des command would do this - it's simple enough to see by just running it), e.g. a single 'a' (0x61) character will be converted to two characters: '61'. The resulting output characters would thus be in the range A-F or a-f and 0-9.

Note that keys require ASCII, but this is not a requirement of DES itself, as can be derived from "Bugs" on the same page, and it doesn't affect the range of output values.

于 2013-10-20T13:44:49.503 回答
0

DES 算法被认为是过时且不安全的。DES 标准 (FIPS 46-3) 已于 2005 年撤销。

使用风险自负。

请参阅http://en.wikipedia.org/wiki/Data_Encryption_Standard

于 2013-10-25T18:24:51.863 回答