Skip to content

Commit 4a0c430

Browse files
nivekmaifabaff
authored andcommitted
Script for generating secure network key (home-assistant#1105)
1 parent 74b03ba commit 4a0c430

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/getting-started/z-wave.markdown

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ Uncomment the line:
118118

119119
You can replace these values with your own 16 byte network key. For more information on this process see the [OpenZwave](https://github.com/OpenZWave/open-zwave) wiki article [Adding Security Devices to OZW](https://github.com/OpenZWave/open-zwave/wiki/Adding-Security-Devices-to-OZW)
120120

121+
An easy script to generate a random key:
122+
```bash
123+
cat /dev/urandom | tr -dc '0-9A-F' | fold -w 32 | head -n 1 | sed -e 's/\(..\)/0x\1, /g'
124+
```
125+
121126
### {% linkable_title Events %}
122127

123128
#### {% linkable_title zwave.network_complete %}

0 commit comments

Comments
 (0)