I need PHP function that will create 8 chars long [a-z] hash from any input string.
So e.g. when I’ll submit “Stack Overflow” it will return e.g. “gdqreaxc” (8 chars [a-z] no numbers allowed)
I need PHP function that will create 8 chars long [a-z] hash from any
Share
Perhaps something like:
This produces a SHA1 hash, base-64 encodes it (giving us the full alphabet), removes non-alpha chars, lowercases it, and truncates it.
For
$input = 'yar!';:mwinzewnFor
$input = 'yar!!';:yzzhzwjjSo the spread seems pretty good.