🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #8125

Re: Comprobar contraseña

#8125
From: Fernando Arbeiza
Date: Sun, 15 Dec 2002 11:27
20 lines
1716 bytes
Hola:

On Sun, 15 Dec 2002 02:09:16 +0100, quantium <quantium@lycos.es> wrote:
> He estado jugeteando con la funcion crypt(), pero nunca me salen los 
> mismos caracteres que la contrase�a que estan en /etc/shadow, creo que 
> existen varias formas de encriptar con crypt() ...

Una cosita, recuerda que la funci�n crypt tiene el prototipo:

    char *crypt(const char *key, const char *salt);

Y que cuando vayas a comprobar contrase�as, debes utilizar como
par�metro salt la contrase�a que vas a comprobar.

Un saludo.

-- 
Fernando Arbeiza
arbeizaf [arroba(at)] ono [punto(dot)] com
LFS en castellano:  <URL:http://www.escomposlinux.org/lfs-es>
Technical Details
Message-ID: <slrnavoppq.l8.direccion_en_la_firma.address_in_signature@jupiter.olimpo>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!62.42.160.52!not-for-mail
References: <atgjct$13knnp$1@ID-129971.news.dfncis.de> <20021215010241.1E93C245.NOFFLE@BlueSpark.local> <atgkng$13pu9h$1@ID-129971.news.dfncis.de>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,249be857bbf5a850
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-12-15 03:36:29 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!62.42.160.52!not-for-mail
From: Fernando Arbeiza <direccion_en_la_firma.address_in_signature@homelinux.org>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Comprobar contraseña
Date: Sun, 15 Dec 2002 12:27:54 +0100
Lines: 20
Message-ID: <slrnavoppq.l8.direccion_en_la_firma.address_in_signature@jupiter.olimpo>
References: <atgjct$13knnp$1@ID-129971.news.dfncis.de> <20021215010241.1E93C245.NOFFLE@BlueSpark.local> <atgkng$13pu9h$1@ID-129971.news.dfncis.de>
NNTP-Posting-Host: 62.42.160.52
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1039952188 38166935 62.42.160.52 (16 [148301])
X-Orig-Path: jupiter.olimpo!news
User-Agent: slrn/0.9.7.4 (Linux)