Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Hash, zabezpieczenie hasła
seba199696
post
Post #1





Grupa: Zarejestrowani
Postów: 119
Pomógł: 0
Dołączył: 4.01.2011

Ostrzeżenie: (20%)
X----


  1. $hashh = hash('sha256', $password);
  2.  
  3. function createSalt()
  4. {
  5. $string = sha1(md5(uniqid(rand(), true)));
  6. return substr($string, 0, 3);
  7. }
  8. $salt = createSalt();
  9. $hash = hash('sha256', $salt . $hashh);
  10.  
  11. echo $hash;
  12.  


Cześć(IMG:style_emoticons/default/smile.gif)

Da się to złamać?
Macie jakieś propozycję?

Seba

Ten post edytował seba199696 22.07.2011, 23:32:39
Go to the top of the page
+Quote Post

Posty w temacie


Closed TopicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.09.2025 - 20:20