working initial

This commit is contained in:
Mike Kinney
2021-12-17 10:19:48 -08:00
parent 0410a427b6
commit 8fd00efe8b
3 changed files with 62 additions and 1 deletions

View File

@@ -16,6 +16,14 @@ import pkg_resources
blacklistVids = dict.fromkeys([0x1366])
def quoteBooleans(a_string):
"""Quote booleans
given a string that contains ": true", replace with ": 'true'" (or false)
"""
tmp = a_string.replace(": true", ": 'true'")
tmp = tmp.replace(": false", ": 'false'")
return tmp
def genPSK256():
"""Generate a random preshared key"""
return os.urandom(32)