I'm looking to convert a hex such as
12b2b0621c79b1e57fb0ee64061ef92e8ae04a0b13173cd681addf6f2bb474f3
(longest HEX output I have)
to a passphrase with alphanumeric characters with some uppercase characters as well. Is there a way I can do this? Maybe cycle through an array of characters, not sure.
I have tried to use the
["666f6f626172"].pack('H*')
=> "foobar"
code, but I get "??" showing up as a return value. This is due to it being outside the 26 alphabet characters. I'm trying to stay within that limit