Greg Woods wrote:
Anybody got some code (or an algorithm that I can code) that will convert an AES key from encoded ASCII to hex? I need this as part of our project to integrate Yubikeys into an existing authentication infrastructure. We are using the YubiPAM module from freeradius to authenticate with Yubikeys, but I also want to be able to program the Yubikeys. This requires being able to enter the generated AES key into the database used by YubiPAM. However, the ykpasswd command used for YubiPAM wants the key in hex, whereas the ykpersonalize tool generates the key in encoded ASCII:
key:gtheuknkdtkgjfufbvridkvetnlffukh
I need a way to convert that to hex.
Thanks,
--Greg
Greg,
It may not be documented that well but ykpasswd will accept AES keys in either hex or modhex (or encoded ascii as you refer).
firnsy