I'm not a mathematician, so please forgive any ignorance.
I have a small business - I'm generating invoices incrementally. I'm currently on about invoice number 4000.
I guess I don't want my customers knowing how much business I'm doing (i.e. if they get an invoice for 4500, they know I've been doing a lot of business lately. However, if they get an invoice for 4010, they know things are slow).
So, my question is: how can I map say, 4500, to a guaranteed-to-be unique, human-readable/human-rememberable sequence?
e.g.
4500 -> a48b82w
4501 -> b802aq2
4502 -> qi289a1
etc.
Is there a quick mathematical function that can do this? I have no idea...
One option would be a bit relocation (for 32-bit n):
which is reversible, i.e. n=hash(hash(n)).
Example: