【发布时间】:2021-03-16 18:41:36
【问题描述】:
我试图在下面几个小时内识别这个哈希码:
$6$VQoztKJH$0aL8rygMd8gfX7m8cTRWOn4pqQ6bA/jkPyQSnzU0g10E0UiMQjIijs/66vflY7cMrGSKmmiBWE7r8oNCDQc3D/
不,不是 sh-2 也不是 sha256。
会是不明身份吗?
【问题讨论】:
我试图在下面几个小时内识别这个哈希码:
$6$VQoztKJH$0aL8rygMd8gfX7m8cTRWOn4pqQ6bA/jkPyQSnzU0g10E0UiMQjIijs/66vflY7cMrGSKmmiBWE7r8oNCDQc3D/
不,不是 sh-2 也不是 sha256。
会是不明身份吗?
【问题讨论】:
$6表示哈希来自SHA-512算法,见man 3 crypt:
If salt is a character string starting with the characters "$id$" followed by a string optionally terminated by "$", then the result has the form: $id$salt$encrypted id identifies the encryption method used instead of DES and this then determines how the rest of the password string is interpreted. The following values of id are supported: ID | Method ───────────────────────────────────────────────────────── 1 | MD5 2a | Blowfish (not in mainline glibc; added in some | Linux distributions) 5 | SHA-256 (since glibc 2.7) 6 | SHA-512 (since glibc 2.7)
【讨论】: