Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有点困惑。当我用盐和密码调用 crypt 时,返回的字符串称为哈希或摘要?我很困惑,因为我知道从加密函数返回的内容称为哈希。但是当我们调用 crypt 时,我们也将盐作为参数传递。我们可以这样说:
digest=$id$salt$hash
Crypt 函数返回的不是摘要本身,而是摘要加上参数(如盐和函数标识符/版本/其他任何内容)的串联。