Created
February 5, 2021 02:42
-
-
Save rveachkc/6723090fd7a011f7e81dcf33e43223aa to your computer and use it in GitHub Desktop.
zwave key generator for zwave-js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
""" | |
This quick script will generate a random key for use in zwave-js | |
""" | |
import random | |
bit_choices = ["0x{:02d}".format(x) for x in range(0,16)] | |
key = ", ".join([random.choice(bit_choices) for x in range(0,16)]) | |
print(key) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment