LINUX.ORG.RU
решено ФорумTalks

[анабиоз] pass


0

0

собственно как сейчас делается хэш паса в /etc/shadow?
43 символа - это явно не просто md5,да и не похоже - те же $ и /

★★★★

В openSUSE вроде-бы Blowfish по умолчанию. У меня в убунте - явно md5 (строка начинается с $1$)

Cancellor ★★★★☆
()
Ответ на: комментарий от Cancellor

явно md5 (строка начинается с $1$)

и что это значит? это явно не md5

вот что у меня

$6$3yi9NzZJ$xQZOR42RKSK0f6DW1hBUwqvJGP7CzBo5mgcHjF4oM90ZFBJQm8F/KFZfzY/v5sndpv3l1G6vQy1j1bOziSoyL0

а вот что выдаёт md5sum если ему подсунуть мой пасс

echo "pass" | md5sum  
b5e808f2a41cb05f73fd604ab1b3bda6  -

совсем не похоже на md5

megabaks ★★★★
() автор топика
Ответ на: комментарий от megabaks

http://ru.wikipedia.org/wiki/Passwd#.D0.A3.D1.80.D0.BE.D0.B2.D0.BD.D0.B8_.D0....

В ранних UNIX пароль шифровался с помощью одного из вариантов DES, теперь используется MD5-хеширование или blowfish-хеширование, MD5-хеши всегда записываются после префикса «$1$».

Cancellor ★★★★☆
()
Ответ на: комментарий от megabaks

man 3 crypt

http://www.kernel.org/doc/man-pages/online/pages/man3/crypt.3.html

ъ:


Glibc Notes
       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 SHA implementation the entire key is significant (instead of only the
       first 8 bytes in MD5).

n_play
()
Ответ на: комментарий от Cancellor

>MD5-хеши всегда записываются после префикса «$1$»
4.2 - года эдак 2-3 назад такого не было!

megabaks ★★★★
() автор топика
Ответ на: комментарий от n_play

хм - я неправильно посчитал - выходит ща у мну SHA-512 )

megabaks ★★★★
() автор топика
Ответ на: комментарий от Ramen

так хочется поиграться?
да и какой интерес ковырять десктоп?

megabaks ★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.