Arama butonu
Bu konudaki kullanıcılar: 1 misafir, 1 mobil kullanıcı
1
Cevap
1514
Tıklama
0
Öne Çıkarma
PHP kodu tersten işleme (decode)
C
10 yıl
Yüzbaşı
Konu Sahibi

Bu kodun sonuçlarının ne olduğunu biliyorum fakat seed'i bilmiyorum.
Bu işlemleri tersine yaparak seed'e ulaşabilir miyim diye merak etmiştim?
Oluyorsa birisi bana yardımcı olabilir mi?

(sadece seed değiştirilerek bu sonuca ulaşıldığından eminim fakat ben bu işlemi tersine çeviremiyorum.)

Aslında bu seed'in nasıl bulunduğu seed'in kendisinden daha önemli çünkü bunu sadece 1 kere değil 2-3 gün üstüste yapmam gerekiyor. Bunu yapan arkadaş nasıl yaptığını söylerse çok daha iyi olur.

PHP KODU:
$seed = "64 basamaklı (abcdef0123456789) harf ve rakamları kullanılarak oluşturulmuş bir seed"; 
$lotto = "0209253738";

$round0 = "124000";
$hash0 = hash("sha256",$seed."-".$lotto."-".$round0);
$sayi0 = hexdec(substr($hash0,0,8)) % 15;
echo "$round0 = $sayi0<br>";

$round1 = "124001";
$hash1 = hash("sha256",$seed."-".$lotto."-".$round1);
$sayi1 = hexdec(substr($hash1,0,8)) % 15;
echo "$round1 = $sayi1<br>";

$round2 = "124002";
$hash2 = hash("sha256",$seed."-".$lotto."-".$round2);
$sayi2 = hexdec(substr($hash2,0,8)) % 15;
echo "$round2 = $sayi2<br>";

$round3 = "124003";
$hash3 = hash("sha256",$seed."-".$lotto."-".$round3);
$sayi3 = hexdec(substr($hash3,0,8)) % 15;
echo "$round3 = $sayi3<br>";

$round4 = "124004";
$hash4 = hash("sha256",$seed."-".$lotto."-".$round4);
$sayi4 = hexdec(substr($hash4,0,8)) % 15;
echo "$round4 = $sayi4<br>";

$round5 = "124005";
$hash5 = hash("sha256",$seed."-".$lotto."-".$round5);
$sayi5 = hexdec(substr($hash5,0,8)) % 15;
echo "$round5 = $sayi5<br>";

$round6 = "124006";
$hash6 = hash("sha256",$seed."-".$lotto."-".$round6);
$sayi6 = hexdec(substr($hash6,0,8)) % 15;
echo "$round6 = $sayi6<br>";

$round7 = "124007";
$hash7 = hash("sha256",$seed."-".$lotto."-".$round7);
$sayi7 = hexdec(substr($hash7,0,8)) % 15;
echo "$round7 = $sayi7<br>";

$round8 = "124008";
$hash8 = hash("sha256",$seed."-".$lotto."-".$round8);
$sayi8 = hexdec(substr($hash8,0,8)) % 15;
echo "$round8 = $sayi8<br>";

$round9 = "124009";
$hash9 = hash("sha256",$seed."-".$lotto."-".$round9);
$sayi9 = hexdec(substr($hash9,0,8)) % 15;
echo "$round9 = $sayi9<br>";


SONUÇ:
124000 = 14 
124001 = 12
124002 = 5
124003 = 14
124004 = 14
124005 = 5
124006 = 3
124007 = 1
124008 = 11
124009 = 6





< Bu mesaj bu kişi tarafından değiştirildi C.apture -- 1 Ocak 2016; 16:33:07 >