mirror of
https://github.com/pdxlocations/contact.git
synced 2026-03-28 17:12:35 +01:00
Compare commits
13 Commits
1.3.10
...
refactor-c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74d19c5ca7 | ||
|
|
33f7db4cb9 | ||
|
|
06d151e991 | ||
|
|
50efa50923 | ||
|
|
cef86ab185 | ||
|
|
3d305a22b9 | ||
|
|
6d45788a5b | ||
|
|
e0e09aeccf | ||
|
|
bfb7ed0278 | ||
|
|
b7a275f725 | ||
|
|
587d79cb93 | ||
|
|
eb79675be0 | ||
|
|
61e1799199 |
@@ -104,13 +104,11 @@ def get_admin_key_input(current_value: List[bytes]) -> Optional[List[str]]:
|
||||
return [base64.b64encode(b).decode() for b in byte_strings]
|
||||
|
||||
def is_valid_base64(s):
|
||||
"""Check if a string is valid Base64 or blank."""
|
||||
if s == "":
|
||||
return True
|
||||
"""Check if a string is valid Base64."""
|
||||
try:
|
||||
decoded = base64.b64decode(s, validate=True)
|
||||
return len(decoded) == 32 # Ensure it's exactly 32 bytes
|
||||
except (binascii.Error, ValueError):
|
||||
except binascii.Error:
|
||||
return False
|
||||
|
||||
cvalue = to_base64(current_value) # Convert current values to Base64
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "contact"
|
||||
version = "1.3.9"
|
||||
version = "1.3.8"
|
||||
description = "This Python curses client for Meshtastic is a terminal-based client designed to manage device settings, enable mesh chat communication, and handle configuration backups and restores."
|
||||
authors = [
|
||||
{name = "Ben Lipsey",email = "ben@pdxlocations.com"}
|
||||
|
||||
Reference in New Issue
Block a user