Skip to content

Instantly share code, notes, and snippets.

@rveachkc
Created February 5, 2021 02:42
Show Gist options
  • Save rveachkc/6723090fd7a011f7e81dcf33e43223aa to your computer and use it in GitHub Desktop.
Save rveachkc/6723090fd7a011f7e81dcf33e43223aa to your computer and use it in GitHub Desktop.
zwave key generator for zwave-js
#! /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