projects
/
user
/
alex
/
software
/
my-snippets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e45977
)
Avoid early termination of the key
author
Alex Dehnert
<adehnert@mit.edu>
Tue, 20 Jul 2010 02:04:28 +0000
(22:04 -0400)
committer
Alex Dehnert
<adehnert@mit.edu>
Tue, 20 Jul 2010 02:04:28 +0000
(22:04 -0400)
Newlines will end a zcrypt key early, which is bad. So delete them.
Thanks to Anders on -c rye -i ask-zephyr.d.
make-zcrypt-key
patch
|
blob
|
history
diff --git
a/make-zcrypt-key
b/make-zcrypt-key
index 0a903f3250d0dfc4d7302a2f267083ab54dae368..75ff68b211114cf9222dbc9377d667e6fbe266c2 100755
(executable)
--- 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