![]() |
Generating 25 character key from a password - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Generating 25 character key from a password (/showthread.php?tid=777) |
- William - 01-03-2007 that cant be that hard, well it can take some time. I will construct a tiny version for you: Code: Password: abc Code: ' Get the key from the password Code: The key would be: a23frblt5dcm48d You get the idea how I would have done it ![]() ![]() - Obsidian - 01-03-2007 Well i would assume that you could do something like... get the length of their password, and then start to generate one based on that. if you want it to be a repeatable key... then a mathematical formula obviously is what needs to be used. - Robin - 01-03-2007 I agree with obsidian. Generate the length through the length of the password, then use a formula to fill it with stuff. - Spodi - 01-03-2007 Why 25 characters? I've always wished MD5 was easily definable on the length, too - god that would be handy. But with 25 characters, in base 16, that is still 16 ^ 25, or 1267650600228229401496703205376 different combination, so chances of repeats are quite small. Anyways, what you can do is just take the MD5 hash and trim off the last 7 characters, and bam, 25. :wink: If you want to obfuscate it farther, run whatever you can/want through encryptions, combine different parts of MD5 hashes, etc. |