C
C
Chvalov2014-10-23 03:11:20
linux
Chvalov, 2014-10-23 03:11:20

In what encoding is the root password encrypted in CentOS 6.x?

What encryption algorithm does CentOS 6.X use to encrypt passwords stored in the shadow file ?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
brutal_lobster, 2014-10-23
@brutal_lobster

man 5 shadow
man 3 crypt

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.

S
Slipeer, 2014-10-23
@Slipeer

You can always look in the settings.
By default there is MD5

P
Puma Thailand, 2014-10-23
@opium

now everything on sha used to be md5

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question