keystone.credential.providers.fernet.core module

class keystone.credential.providers.fernet.core.Provider[source]

Bases: Provider

decrypt(credential)[source]

Attempt to decrypt a credential.

Parameters:

credential – an encrypted credential string

Returns:

a decrypted credential

encrypt(credential)[source]

Attempt to encrypt a plaintext credential.

Parameters:

credential – a plaintext representation of a credential

Returns:

an encrypted credential

keystone.credential.providers.fernet.core.get_multi_fernet_keys()[source]
keystone.credential.providers.fernet.core.primary_key_hash(keys)[source]

Calculate a hash of the primary key used for encryption.