keystone.identity.id_generators.sha256 module

class keystone.identity.id_generators.sha256.Generator[source]

Bases: IDGenerator

generate_public_ID(mapping)[source]

Return a Public ID for the given mapping dict.

Parameters:

mapping (dict) – The items to be hashed.

The ID must be reproducible and no more than 64 chars in length. The ID generated should be independent of the order of the items in the mapping dict.