mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-09 22:50:56 +00:00
using /dev/random as a better source of entropy for key generation
This commit is contained in:
parent
246db46140
commit
b72a6448a9
2
src/tomb
2
src/tomb
@ -354,7 +354,7 @@ create_tomb() {
|
||||
act "once done you will be asked to choose a password for your tomb."
|
||||
touch ${keytmp}/tomb.tmp
|
||||
chmod 0600 ${keytmp}/tomb.tmp
|
||||
$DD bs=1 count=256 if=/dev/urandom of=${keytmp}/tomb.tmp
|
||||
$DD bs=1 count=256 if=/dev/random of=${keytmp}/tomb.tmp
|
||||
if ! [ -r ${keytmp}/tomb.tmp ]; then
|
||||
error "cannot generate encryption key, operation aborted."
|
||||
umount ${keytmp}
|
||||
|
Loading…
Reference in New Issue
Block a user