linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Two Questions I Need Answered Please.
@ 2004-03-31  3:46 Scott@Charter
  2004-03-31  5:36 ` Glynn Clements
  0 siblings, 1 reply; 2+ messages in thread
From: Scott@Charter @ 2004-03-31  3:46 UTC (permalink / raw)
  To: linux-admin

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

In the /etc/shadow file how is the password
"$1$shGNybY9$L)J1gwitzN6LoeS0pMpNc/" encrypted?

In the /etc/shadow file how is the password "!za1aId0hfZ2IA" encrypted and
what significance does this password hold?


Thanks,
Scott
Reno, NV

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Scott Smallsreed.vcf --]
[-- Type: text/x-vcard; name="Scott Smallsreed.vcf", Size: 366 bytes --]

BEGIN:VCARD
VERSION:2.1
N:Smallsreed;Scott
FN:Scott Smallsreed
TEL;HOME;VOICE:775-849-8411
TEL;HOME;FAX:775-849-8412
ADR;HOME:;;3030 Chipmunk Dr.;Washoe Valley;Nevada;89704;US
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:3030 Chipmunk Dr.=0D=0AWashoe Valley, Nevada 89704=0D=0AUS
EMAIL;PREF;INTERNET:scott.smallsreed@mindspring.com
REV:20040331T034650Z
END:VCARD

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Two Questions I Need Answered Please.
  2004-03-31  3:46 Two Questions I Need Answered Please Scott@Charter
@ 2004-03-31  5:36 ` Glynn Clements
  0 siblings, 0 replies; 2+ messages in thread
From: Glynn Clements @ 2004-03-31  5:36 UTC (permalink / raw)
  To: Scott@Charter; +Cc: linux-admin


Scott@Charter wrote:

> In the /etc/shadow file how is the password
> "$1$shGNybY9$L)J1gwitzN6LoeS0pMpNc/" encrypted?

Passwords aren't encrypted, but hashed. The distinction is that there
isn't any way to decrypt the data in the shadow file to obtain the
actual password. The password which is entered by the user is
concatenated with the salt and the result is then hashed. The hash is
compared against the one from the shadow (or passwd) file.

In the above, "$1$" indicates that the entry is hashed using MD5 (as
opposed to the traditional DES hash), "shGNybY9" is the salt, and
"L)J1gwitzN6LoeS0pMpNc/" is the base64-encoded hash (an MD5 hash is a
128-bit value).

Although, the glibc documentation (which concurs with my /etc/shadow
file) says that the base64 encoding uses A-Z, a-z, 0-9 plus "/"
(slash) and "." (period); no mention of ")".

> In the /etc/shadow file how is the password "!za1aId0hfZ2IA" encrypted and
> what significance does this password hold?

That is a DES hashed password, where "za" is the salt and
"1aId0hfZ2IA" is the base64-encoded DES hash (DES hashes are 64 bits,
although only 56 bits are significant). The leading "!" indicates that
the account is locked (it also ensures that any attempt to validate a
password will fail, regardless of the actual password which is
entered).

-- 
Glynn Clements <glynn.clements@virgin.net>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-31  5:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-31  3:46 Two Questions I Need Answered Please Scott@Charter
2004-03-31  5:36 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).