map alphanumeric characters in public key to frequencies