MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / _is_valid_fernet_key

Function _is_valid_fernet_key

IntelOSINT.py:1932–1939  ·  view source on GitHub ↗
(raw_value: str)

Source from the content-addressed store, hash-verified

1930
1931
1932def _is_valid_fernet_key(raw_value: str) -> bool:
1933 if not Fernet:
1934 return False
1935 try:
1936 Fernet(raw_value.encode("utf-8"))
1937 return True
1938 except Exception:
1939 return False
1940
1941
1942def _bootstrap_tokens():

Callers 1

_bootstrap_tokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected