covertutils.crypto.keys package¶
Submodules¶
covertutils.crypto.keys.__main__ module¶
covertutils.crypto.keys.cyclingkey module¶
covertutils.crypto.keys.encryptionkey module¶
covertutils.crypto.keys.standardcyclingkey module¶
-
class
covertutils.crypto.keys.standardcyclingkey.
StandardCyclingKey
(passphrase, cycling_algorithm=None, cycle=True, salt=None, **kw)[source]¶ Bases:
covertutils.crypto.keys.cyclingkey.CyclingKey
,covertutils.crypto.keys.encryptionkey.EncryptionKey
-
__init__
(passphrase, cycling_algorithm=None, cycle=True, salt=None, **kw)[source]¶ Parameters: - passphrase (str) – The key will be created against a passphrase. Passphrase will be the primary seed of all cycling. If a Secure __hash function is used, it is length won’t provide additional security, or better encryption.
- cycling_algorithm (object) – The cycling algorithm determines the key quality. By default the :class:CyclingAlgorithm class is used, but hashlib.md5, hashlib.sha256 and every hash function object with a digest() method can be used.
- salt (str) – Salt further differentiates the key from other keys with the same passphrase. For two keys to be compatible they must have the same salt too. If not specified a default salt is used.
-