Most of the time, we can probably detect if this is a hex or base32 key. A single character outside the 0-9a-f range makes it a candidate for base32.