On Thursday 22 July 2004 14:31, Emil Cheriches wrote:
> [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?

Daca ai parola initiala, poti verifica...

maya:~$ cat a.c 
#include <stdio.h>

int main (void) {
  printf ("%s\n", crypt ("parolatest", "tJ"));
}
maya:~$ ./a 
tJyMGSMMIHCFE

Faci din exemplul de mai sus un program care iti citeste salt-ul si 
parola si crypteaza.

Salt-ul sunt primele doua caractere ale parolei cryptate de vrei s-o 
verifici... te prinzi tu.

-- 
  Claudiu Cismaru
  GPG Key: http://maya.cnixs.com/~claudiu/claudiu.gpg

--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui