MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / _decrypt_val

Function _decrypt_val

tests/src/util/keyhandler.py:35–43  ·  view source on GitHub ↗
(v: T)

Source from the content-addressed store, hash-verified

33
34
35def _decrypt_val(v: T) -> T:
36 if isinstance(v, str):
37 return FERNET.decrypt(v).decode() # type: ignore
38 if isinstance(v, list):
39 return _decrypt_list(v) # type: ignore
40 if isinstance(v, dict):
41 return _decrypt_dict(v) # type: ignore
42
43 return v
44
45
46def _decrypt_list(data: list) -> list:

Callers 2

_decrypt_listFunction · 0.85
_decrypt_dictFunction · 0.85

Calls 3

_decrypt_listFunction · 0.85
_decrypt_dictFunction · 0.85
decodeMethod · 0.80

Tested by

no test coverage detected