in reply to Question: methods to transfer a long hexadicimal into shorter string

There are quite a few modules in CPAN dealing with Base64 encoding, which might be just what you're looking for.

Is there any reason why you need human-readable unique keys? Why not pack the key as a binary string using pack() while you're at it?

-- Time flies when you don't know what you're doing
  • Comment on Re: Question: methods to transfer a long hexadicimal into shorter string