我知道 Linux 的典型加密类型是 $1$、$2a$、$2y$、$5$ 和 $6$,但我还没有找到 $y$ 是什么的任何答案。我正在使用最新版本的 Kali Linux。这两个帐户是为练习而创建的虚拟帐户。
exam_user_1:$y$j9T$Sn7.l9zwy3VX0vbgSX1JQ0$iHN/q4Q9CPnTxm/x01joswdLKgfbexP1BKCkc13pqI6:18845:0:99999:7:::
exam_user_2:$y$j9T$ylZ/f6ILdzB/AFXh3lhRI/$adutx/xXKNf5PmGLUMMfzCa4/uIlS7ZzbU/5LIiPjo3:18845:0:99999:7:::
答案1
从man 5 crypt
,AVAILABLE HASHING METHODS
yescrypt yescrypt is a scalable passphrase hashing scheme designed by Solar Designer, which is based on Colin Percival's scrypt. Recommended for new hashes. Prefix "$y$" Hashed passphrase format \$y\$[./A-Za-z0-9]+\$[./A-Za-z0-9]{,86}\$[./A-Za-z0-9]{43} Maximum passphrase length unlimited Hash size 256 bits Salt size up to 512 bits CPU time cost parameter 1 to 11 (logarithmic)