Starting from a hex source, i want to convert it to a-zA-Z0-9.
base_convert() only supports as output a 32 base, that equals to a-z0-9. I need a base-62 output, for the additional A-Z (don’t know how to better explain, sorry).
I’m doing this (since that the community often ask) cause of i’m using openssl rand -hex as a source for random password (i would love to use rand() and so on, but i need to have lots of unique passwords, and rand() or even mt_rand() doesn’t provide enough casualty, password get repeated so often that the script locks down).
Thanks.
Try this: