mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-01-22 14:38:25 +00:00
Key generation provides better feedback
This commit is contained in:
parent
600ffb1170
commit
0095a89d4d
7
src/tomb
7
src/tomb
@ -298,9 +298,14 @@ create_tomb() {
|
||||
act "Generating secret key..."
|
||||
act "this operation takes time, keep using this computer on other tasks,"
|
||||
act "once done you will be asked to choose a password for your tomb."
|
||||
act "To make it faster you can move the mouse"
|
||||
touch ${keytmp}/tomb.tmp
|
||||
chmod 0600 ${keytmp}/tomb.tmp
|
||||
$DD bs=1 count=256 if=/dev/random of=${keytmp}/tomb.tmp
|
||||
if [[ $DD = "dcfldd" ]]; then
|
||||
$DD bs=1 count=256 if=/dev/random of=${keytmp}/tomb.tmp statusinterval=1
|
||||
else
|
||||
$DD bs=1 count=256 if=/dev/random of=${keytmp}/tomb.tmp
|
||||
fi
|
||||
if ! [ -r ${keytmp}/tomb.tmp ]; then
|
||||
error "cannot generate encryption key, operation aborted."
|
||||
umount ${keytmp}
|
||||
|
Loading…
x
Reference in New Issue
Block a user