From 4a0c430b313418dc376bef3be2a9df10861f8014 Mon Sep 17 00:00:00 2001 From: Kevin Christensen Date: Tue, 4 Oct 2016 08:31:08 -0700 Subject: [PATCH] Script for generating secure network key (#1105) --- source/getting-started/z-wave.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/getting-started/z-wave.markdown b/source/getting-started/z-wave.markdown index b0951255e39..b7d7ca094ee 100644 --- a/source/getting-started/z-wave.markdown +++ b/source/getting-started/z-wave.markdown @@ -118,6 +118,11 @@ Uncomment the line: 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) +An easy script to generate a random key: +```bash +cat /dev/urandom | tr -dc '0-9A-F' | fold -w 32 | head -n 1 | sed -e 's/\(..\)/0x\1, /g' +``` + ### {% linkable_title Events %} #### {% linkable_title zwave.network_complete %}