forked from p15670423/monkey
Island: Add TODO about using secrets vs pycryptodome
This commit is contained in:
parent
fe36f863b5
commit
3d5d563164
|
@ -37,6 +37,7 @@ class DataStoreEncryptor(IEncryptor):
|
|||
return KeyBasedEncryptor(plaintext_key)
|
||||
|
||||
def _create_key(self) -> KeyBasedEncryptor:
|
||||
# TODO: Can we just use secrets.token_bytes(DataStoreEncryptor._KEY_LENGTH_BYTES)?
|
||||
plaintext_key = Random.new().read(DataStoreEncryptor._KEY_LENGTH_BYTES)
|
||||
|
||||
encrypted_key = self._password_based_encryptor.encrypt(plaintext_key)
|
||||
|
|
Loading…
Reference in New Issue