keystone.credential.providers.fernet.core module

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.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.