[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Salt for /etc/shadow and passwd?

On Tue, Jul 17, 2001 at 04:02:03PM -0400, Thomas Morin wrote:
> -. Jason Lim (2001-07-18) :
>  |
>  | Okay... I wasn't thinking. The salt is stored within the crypted password
>  | generated, which is why password crackers work.
> Yes, with crypt(3) the salt is precisely the first two characters.

_If_ you use the old crypt() semantics. If you provide a salt
starting with '$1$' it will give you MD5-hashed password.

Marcin Owsiany <porridge@pandora.info.bielsko.pl>
GnuPG: 1024D/60F41216  FE67 DA2D 0ACA FC5E 3F75  D6F6 3A0D 8AA0 60F4 1216

Reply to: