14.04.2015, 20:54
(
Последний раз редактировалось Evocator; 15.04.2015 в 14:32.
Причина: added an example.
)
Thats way way poor and lacks of explanation. If you are willing to re-distribute the work i suggest you copy and past the original topic, also linking to your own website is somehow selfish.
Anw,
Original example (might be helpful):
Other notes he mentioned:
Anw,
Original example (might be helpful):
Quote:
Код:
#include <a_samp> native WP_Hash(buffer[], len, const str[]); main() { new buf[129]; printf("hash"); WP_Hash(buf, sizeof (buf), "The quick brown fox jumps over the lazy dog"); print(buf); } Код:
B97DE512E91E3828B40D2B0FDCE9CEB3C4A71F9BEA8D88E75C4FA854DF36725FD2B52EB6544EDCACD6F8BEDDFEA403CB55AE31F03AD62A5EF54E42EE82C3FB35 |
Quote:
If you use YSI that uses a custom key-based hash algorithm, while there are currently no known cracks for it I do not know exactly how secure it is, however the key system vastly improves it's security from server to server. You may want to consider upgrading to Whirlpool however YSI is the only user system which actually bothered with anything resembling security, so it's not required. As with all my plugins if you place the folder in your SA:MP directory then compiling the plugin will automatically place the new dll or so in your plugins directory. |