Lines 37-43
class PlaintextKeyring(Keyring):
Link Here
|
37 |
|
37 |
|
38 |
class Encrypted(object): |
38 |
class Encrypted(object): |
39 |
""" |
39 |
""" |
40 |
PyCrypto-backed Encryption support |
40 |
Pycryptodome-backed Encryption support |
41 |
""" |
41 |
""" |
42 |
scheme = '[PBKDF2] AES256.CFB' |
42 |
scheme = '[PBKDF2] AES256.CFB' |
43 |
version = '1.0' |
43 |
version = '1.0' |
Lines 68-74
class Encrypted(object):
Link Here
|
68 |
|
68 |
|
69 |
|
69 |
|
70 |
class EncryptedKeyring(Encrypted, Keyring): |
70 |
class EncryptedKeyring(Encrypted, Keyring): |
71 |
"""PyCrypto File Keyring""" |
71 |
"""Cryptodome File Keyring""" |
72 |
|
72 |
|
73 |
filename = 'crypted_pass.cfg' |
73 |
filename = 'crypted_pass.cfg' |
74 |
pw_prefix = 'pw:'.encode() |
74 |
pw_prefix = 'pw:'.encode() |
Lines 82-88
class EncryptedKeyring(Encrypted, Keyring):
Link Here
|
82 |
__import__('Crypto.Protocol.KDF') |
82 |
__import__('Crypto.Protocol.KDF') |
83 |
__import__('Crypto.Random') |
83 |
__import__('Crypto.Random') |
84 |
except ImportError: # pragma: no cover |
84 |
except ImportError: # pragma: no cover |
85 |
raise RuntimeError("PyCrypto required") |
85 |
raise RuntimeError("Pycryptodome required") |
86 |
if not json: # pragma: no cover |
86 |
if not json: # pragma: no cover |
87 |
raise RuntimeError("JSON implementation such as simplejson " |
87 |
raise RuntimeError("JSON implementation such as simplejson " |
88 |
"required.") |
88 |
"required.") |