> [EMAIL PROTECTED] bin]# ./htpasswd -b -n test parolatest
> test:0nkEyR94nINBo
> [EMAIL PROTECTED] bin]# ./htpasswd -b -n test parolatest
> test:jT1t3tXHPk6SU
> [EMAIL PROTECTED] bin]# ./htpasswd -b -n test parolatest
> test:jT1t3tXHPk6SU
> [EMAIL PROTECTED] bin]# ./htpasswd -b -n test parolatest
> test:RfXkpWxQipIs2
> [EMAIL PROTECTED] bin]# ./htpasswd -b -n test parolatest
> test:tJyMGSMMIHCFE
> [EMAIL PROTECTED] bin]#
>
> Bun! Cum verific daca 0nkEyR94nINBo si tJyMGSMMIHCFE sunt ambele criptari
> ale aceluiasi string?
Compilezi (gcc X.c -o X -lcrypt):
#include <stdio.h>
int main(int argc , char *argv[])
{
printf("%s\n", crypt(argv[1], argv[2]));
return 0;
}
Presupunem ca ai in fisier asa:
test:tJyMGSMMIHCFE
si, apoi, rulezi asa:
./X parolatest tJ
Daca iti afiseaza acelasi string, inseamna ca parola e corecta.
Exemplu:
./X parolatest tJ => tJyMGSMMIHCFE
./X Parolatest tJ => tJkaoO.alYbpc
^
>
> Emil Cheriches
>
> ----- Original Message -----
> From: "Catalin(ux aka Dino) BOIE" <[EMAIL PROTECTED]>
> To: "Emil Cheriches" <[EMAIL PROTECTED]>
> Sent: Thursday, July 22, 2004 2:26 PM
> Subject: Re: [rlug] parole
>
>
>> On Thu, 22 Jul 2004, Emil Cheriches wrote:
>>
>>> Am un fisier unde am parola stocata in gen apache, adica
> user:parola_criptata.
>>> Am o parola plain text.
>>> Cum verific manual daca parola este valida?
>>> Multumesc anticipat,
>>> Emil Cheriches
>>
>> htpasswd -b -n user pass
>> iti afiseaza:
>> user:cRy3eevUkNXFQ
>>
>>>
>>> ---
>>> Detalii despre listele noastre de mail: http://www.lug.ro/
>>>
>>>
>>
>> ---
>> Catalin(ux aka Dino) BOIE
>> catab at deuroconsult.ro
>> http://kernel.umbrella.ro/
>>
>
>
> ---
> Detalii despre listele noastre de mail: http://www.lug.ro/
>
>
---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/
---
Detalii despre listele noastre de mail: http://www.lug.ro/