Improved pubsub readme

Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/18f3f78a
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/18f3f78a
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/18f3f78a

Branch: refs/heads/master
Commit: 18f3f78a98abacd8b59ee2af4f7cdda772208e1d
Parents: f00f0da
Author: gricciardi <[email protected]>
Authored: Wed Oct 4 10:56:27 2017 +0200
Committer: gricciardi <[email protected]>
Committed: Wed Oct 4 10:56:27 2017 +0200

----------------------------------------------------------------------
 pubsub/README.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/18f3f78a/pubsub/README.md
----------------------------------------------------------------------
diff --git a/pubsub/README.md b/pubsub/README.md
index 1eaa49c..a1cd753 100644
--- a/pubsub/README.md
+++ b/pubsub/README.md
@@ -43,8 +43,8 @@ Design information can be found at 
pubsub\_admin\_udp\_mc/README.md
 For ZeroMQ without encryption, skip the steps 1-12 below
 
 1. Run `touch ~/pubsub.keys`
-1. Run `echo "aes_key:{AES_KEY here}" >> ~/pubsub.keys`
-1. Run `echo "aes_iv:{AES_IV here}" >> ~/pubsub.keys`
+1. Run `echo "aes_key:{AES_KEY here}" >> ~/pubsub.keys`. Note that AES_KEY is 
just a sequence of random bytes. To generate such a key, you can use the 
command " cat /dev/urandom | hexdump -v -e '/1 "%02X"' | head -c 32"(this will 
take out of /dev/urandom 16 bytes, thus a 128bit key)
+1. Run `echo "aes_iv:{AES_IV here}" >> ~/pubsub.keys`.  Note that AES_IV is 
just a sequence of random bytes. To generate such an initial vector , you can 
use the command " cat /dev/urandom | hexdump -v -e '/1 "%02X"' | head -c 
16"(this will take out of /dev/urandom 8 bytes, thus a 64bit initial vector) 
 1. Run `touch ~/pubsub.conf`
 1. Run `echo "keys.file.path=$HOME" >> ~/pubsub.conf`
 1. Run `echo "keys.file.name=pubsub.keys" >> ~/pubsub.conf`

Reply via email to