crypt.3
来自「莱昂氏UNIX源代码分析UNIXv6src.tar.gz」· 3 代码 · 共 35 行
3
35 行
.th CRYPT III 4/30/73.sh NAMEcrypt \*- password encoding.sh SYNOPSIS.ft Bmov $key,r0.brjsr pc,crypt.s3char *crypt(key).brchar *key;.ft R.sh DESCRIPTIONOn entry, r0 points to a string ofcharacters terminated by an ASCII NUL.The routineperforms an operation on the key which is difficult to invert(i.e. encrypts it) and leaves the resulting eight bytesof ASCII alphanumerics in a global cell called ``word''..s3From C, the.it keyargument is a stringand the value returned is a pointer to the eight-characterresult..s3This routine is used to encrypt all passwords..sh "SEE ALSO"passwd(I), passwd(V), login(I).sh BUGSShort or otherwise simple passwords can be decryptedeasily by exhaustive search.Six characters of gibberish is reasonably safe.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?