md5 e functie de 'Message Digest', deci iti genereaza un hash de o anumita
lungime pe baza unui bloc de octeti.
Pe baza hash-ului nu poti deduce sirul initial. Adica indiferent daca fac md5
pentru 'aaaaa' sau pentru
'aaaaaaaaaaaaaaaaaaaaaaaaaa' hash-ul are aceeasi lungime.
In plus doua siruri putin diferite, ex 'aaa' si 'aab' vor genera hash-uri
semnificativ diferite.
La parole criptate in plus se mai foloseste 'sarea'.

jack

deci daca criptezi cu DES (care e criptare simetrica), poti decripta,
utilizind aceeasi cheie,
iar daca folosesti md5 nu prea... :-)

Asta cauti?
(see below)

1.  The MD5 passwords in Redhat /etc/shadow are base64 encoded.
2.  The format of the password is:
    $type$salt$password
    type: 1 -- MD5 encrypted.  Presumably other encryption schemes will
        use $2, $3, etc.
    salt -- 8-character salt used to permute the MD5 algorithm.
    password -- the base64 of the actual MD5 hash.
3.  Here's the easiest way I found to make an RH-compatible MD5
    password:
    perl -MCPAN -e 'install Crypt::PasswdMD5' (just once)
    perl -e 'use Crypt::PasswdMD5 ; print Crypt::PasswdMD5::unix_md5_crypt
"plaintext" , time() % 100000000'
    (line may have wrapped).  Should be trivial to modify this to do
    whatever you want with it.





Ropota Marius Constantin wrote:

> Vazand ca nu ma descurc singur.. m-am gandit sa lansez intrebarea mea pe
> lista..
> Vreau sa fac si eu un porgramel in C care cripteaza un sir de caractere cu
> metoda MD5 encryption.
> Stiu ca daca folosesc functia crypt imi cripteaza sirul cu algoritmul DES,
> iar ca sa imi crypteze cu MD5 tre sa folosesc functia MD5 .
> Bun.. l-am compilat.. dar ceeac e returneaza nu este nici pe departe o
> parola ca ceea din /etc/shadow
> Daca stie cineva.. ii multumesc mult daca ma poate ajuta
>
>                 BAFTA..
>
> ---
> Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
> unsubscribe from this list.

---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui