We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nacl.secret
1 parent 8f341a8 commit d44d03bCopy full SHA for d44d03b
piccolo_api/encryption/providers.py
@@ -178,7 +178,8 @@ def __init__(self, encryption_key: bytes):
178
@staticmethod
179
def get_new_key() -> bytes:
180
nacl_utils = get_nacl_utils()
181
- return nacl_utils.random(nacl.secret.Aead.KEY_SIZE) # type: ignore
+ nacl_secret = get_nacl_secret()
182
+ return nacl_utils.random(nacl_secret.Aead.KEY_SIZE) # type: ignore
183
184
def _get_nacl_box(self) -> nacl.secret.Aead:
185
nacl_secret = get_nacl_secret()
0 commit comments