frozsgy Posted January 25, 2007 Share Posted January 25, 2007 Şifremiz $sifre değişkeninde olunca, şu şekilde bir algoritma ile maksimum güvenlik sağlayabiliriz. md5(sha1(crc32($sifre)));[/CODE]Çok aşırı yüksek güvenlik gerektiren uygulamalarda(e-ticaret gibi) şu kodu kullanabiliriz;[CODE]md5(sha1(crc32(md5($sifre)).sha1($sifre)).crc32($sifre));[/CODE]Uygulamalı örnek;[CODE]<?phpecho '<form action="" method="get"><input name="sifre" value="sifre"><br><input type="submit"></form><br>';$sifre=@$_GET['sifre'];$parola=md5(sha1(crc32($sifre)));$parola2=md5(sha1(crc32(md5($sifre)).sha1($sifre)).crc32($sifre));echo 'sifrelenmemis parola: '.$sifre.'<br>';echo 'sifrelenmis parola: '.$parola.'<br>';echo 'sifrelenmis ekstra guvenli parola: '.$parola2.'<br>';echo 'by frozsgy www.tnctr.com';?>[/CODE] Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.