Jump to content
Corex

MD5 Encrypt

Recommended Posts

Am avut nevoie de ceva criptat MD5 si mi-am facut un script rapid care cripteaza MD5

M-am hotarat sa postez aici scriptul creat de mine poate are nevoie cineva.

<?php
// md5.php?corex=ce vrei sa cryptezi
echo md5($_GET['corex']);
?>

Ca sa folositi scriptul puneti dupa fisier ?corex=ce vrei sa criptezi.

Exemplu

http://site.com/md5.php?corex=helo

Si rezultatul va fi

5d41402abc4b2a76b9719d911017c592

Link to comment
Share on other sites

Am avut nevoie de ceva criptat MD5 si mi-am facut un script rapid care cripteaza MD5

M-am hotarat sa postez aici scriptul creat de mine poate are nevoie cineva.

Si adica ce ai facut tu? practic doar folosesti functia md5(String); care e un standard in PHP.

MD5 este ireversibila intrucat se pierde informatie prin "trecerea prin functie". Fiind doar un hash, apare coliziunea intre generari, si ireversibilitatea.

Gandeste-te la un hash ca la o semnatura. Nu e totuna cu persoana. Daca ai semnatura, nu stii cine a semnat-o, insa aceeeasi persoana creeaza aceiasi semnatura de fiecare data. (Daca ai persoana poti produce semnatura)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...