2019-11-18 15:47:30 +00:00
|
|
|
"""Helper for OwnTracks."""
|
2024-03-08 19:38:34 +00:00
|
|
|
|
2019-11-18 15:47:30 +00:00
|
|
|
try:
|
|
|
|
import nacl
|
|
|
|
except ImportError:
|
2022-03-16 22:30:04 +00:00
|
|
|
nacl = None # type: ignore[assignment]
|
2019-11-18 15:47:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
def supports_encryption() -> bool:
|
|
|
|
"""Test if we support encryption."""
|
|
|
|
return nacl is not None
|