def _key_gen(self, encoded_bytes):
        return encoded_bytes[:random.choice([24, 32])]
Returns ``str`` with a length of 24 or 32.
dataset/ETHPy150Open openstack/openstack-ansible/scripts/pw-token-gen.py/CredentialGenerator._key_gen