From: Alex Dehnert Date: Tue, 20 Jul 2010 02:04:28 +0000 (-0400) Subject: Avoid early termination of the key X-Git-Url: https://www.dehnerts.com/gitweb/?p=user%2Falex%2Fsoftware%2Fmy-snippets.git;a=commitdiff_plain;h=6ac0172fe34ef164025cde2e3cebf859adfebd48 Avoid early termination of the key Newlines will end a zcrypt key early, which is bad. So delete them. Thanks to Anders on -c rye -i ask-zephyr.d. --- diff --git a/make-zcrypt-key b/make-zcrypt-key index 0a903f3..75ff68b 100755 --- a/make-zcrypt-key +++ b/make-zcrypt-key @@ -1,3 +1,3 @@ #!/bin/bash -dd if=/dev/urandom count=1 2>/dev/null +dd if=/dev/urandom bs=1 | tr -d '\000\n' | head -c126 2>/dev/null