add in a new method get_hash_from_apkey