tooltiperror
Super Moderator
- Reaction score
- 231
So, I want to write a Hashing and Unhashing function. Basic idea:
Any tips? Are there any good algorithms for this kind of things?
(also, my charset is as follows: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890")
- [ljass]function Hash[/ljass] takes a salt and a string, and creates a new string. takes strings 50 chars or shorter, and returns a 50 char or shorter string.
- [ljass]function Unhash[/ljass] takes the salt and a string, and only only returns the original string if the salt is correct.
- The salt is more like a password than an average 'salt'.
- Write a JASS version and a C# version so I can hash things and unhash them safely without deprotection meddling.
Any tips? Are there any good algorithms for this kind of things?
(also, my charset is as follows: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890")