Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

SHA256 + PHP

$
0
0
Ïðèâåò!
Äàâíåíüêî ïåðåø¸ë íà âñòðîåííîå â SA:MP õåøèðîâàíèå - SHA256.
Èñïîëüçîâàë òàê:
SHA256_PassHash("Ïàðîëü", "Ñîëü", hash, sizeof(hash));

Òåïåðü ó ìåíÿ åñòü UCP è ÿ õîòåë ïåðåéòè ñ å¸ MD5 íà SHA256.
Äåëàþ ÿ ýòî òàê:
strtoupper(hash('sha256', 'Ñîëü'.'Ïàðîëü'))

Ïðîáëåìà â òîì, ÷òî îáà àëãîðèòìà âûäàþò ðàçíûå õåøè. ß ìåíÿ â php ìåñòàìè ñîëü è ïàðîëü, îäíàêî íóæíîãî ðåçóëüòàòà íåò..

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>