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.
1 parent 60d3e08 commit b9d98bbCopy full SHA for b9d98bb
CacheToolsUtils.py
@@ -421,6 +421,8 @@ def __getitem__(self, key):
421
xval = self._cache[hkey]
422
if self._csize: # split cs from encrypted value
423
cs, xval = xval[:self._csize], xval[self._csize:]
424
+ else:
425
+ cs = None
426
val = self._cipher.new(key=vkey, nonce=vnonce).decrypt(xval)
427
if self._csize and cs != hashlib.sha3_256(val).digest()[:self._csize]:
428
raise KeyError(f"invalid encrypted value for key {key}")
0 commit comments