/etc/shadow
2012-12-31 22:38
127 查看
The glibc2 version of this function supports additional encryption algorithms. If salt is a character string starting with the characters "$id$" followed by a string terminated by "$": $id$salt$encrypted then instead of using the DES machine, id identifies the encryption method used 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) So $5$salt$encrypted is an SHA-256 encoded password and $6$salt$encrypted is an SHA-512 encoded one. "salt" stands for the up to 16 characters following "$id$" in the salt. The encrypted part of the password string is the actual computed password. The size of this string is fixed: MD5 | 22 characters SHA-256 | 43 characters SHA-512 | 86 characters The characters in "salt" and "encrypted" are drawn from the set [a-zA-Z0-9./]. In the MD5 and SHA implementations the entire key is significant (instead of only the first 8 bytes in DES).
相关文章推荐
- Linux新手入门:账号和密码文件 /etc/passwd和/etc/shadow抢沙发
- /etc/shadow文件介绍
- linux 查看当前用户id、whoami用户列表、用户组、用户权限/etc/passwd、/etc/group、/etc/shadow以及切换用户身份、su、sudo、/etc/sudoers
- linux下的/etc/passwd 和/etc/shadow
- Linux学习笔记10 权限,/etc/passwd,/etc/shadow,useradd,userdel,id,finger
- 关于/etc/shadow 文件的九段内容的详细解释
- /etc/shadow --shadowed password file
- linux系统中/etc/passwd ; /etc/shadow ; /etc/group 这个三个有关用户信息的文件解释
- Linux下/etc/shadow文件
- linux /etc/shadow
- /etc/passwd&/etc/shadow
- Ubuntu 12.04 ‘can not lock /etc/shadow try again later’
- Linux学习日记 —— 7.1.2 用户和用户组管理-用户配置文件-影子文件/etc/shadow
- /etc/passwd & /etc/shadow 详解
- /etc/shadow文件介绍
- Understanding /etc/shadow file
- linux:用户和组文件解释(/etc/passwd、/etc/shadow、/etc/group、/etc/gshadow)
- /etc/group 与 /etc/gshadow (一)
- /etc/shadow
- Linux中的/etc/gshadow中密碼的作用