如何解密Django散列sha256密码?

2024-05-28 23:09:57 发布

您现在位置:Python中文网/ 问答频道 /正文

如何解密django散列sha256密码?

我有一个加密密码:

pbkdf2_sha256$12000$laEnG5drNrAt$mFMVBvQh8YF+vriNXbe/Nb8eYEySWwPT5+oSaMPvUiA=

相当于“管理”。

现在我需要解密密码。意思是我想要“管理”作为输出。

这可能吗?


Tags: django密码sha256pbkdf2nb8eyeyswwpt5vrinxbeosampvuialaeng5drnrat
1条回答
网友
1楼 · 发布于 2024-05-28 23:09:57

How to decrypt django hashed sha256 password?

  • SHA256不是加密函数,无法解密

Is this possible?

这是你应该读的post

First, there is a difference between hashing and encryption. SHA256 is a hashing function, not an encryption function.

Secondly, since SHA256 is not an encryption function, it cannot be decrypted. What you mean is probably reversing it. In that case, SHA256 cannot be reversed because it's a one-way function. Reversing it would cause a preimage attack, which defeats its design goal.

Thirdly, SHA256 verification works by computing it again and comparing the result with the result at hand. If both results match, then the verification is successful. The theoretical background is that it's difficult to find another input which gives the same hash result. Violation of this creates a second-preimage attack, which defeats its design goal.

Finally, digital signatures are not simply hash and key combinations. But a hash function may improve its security.

相关问题 更多 >

    热门问题