File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1625,7 +1625,7 @@ gen_key() {
1625
1625
if $( command -v tomb-kdb-pbkdf2-gensalt 1> /dev/null 2> /dev/null) ; then
1626
1626
kdfsalt=` tomb-kdb-pbkdf2-gensalt`
1627
1627
else
1628
- kdfsalt=$( LC_CTYPE=C tr -cd ' a-z0 -9' < /dev/random | head -c 64)
1628
+ kdfsalt=$( LC_CTYPE=C tr -cd ' a-f0 -9' < /dev/random | head -c 64)
1629
1629
fi
1630
1630
_message " kdf salt: ::1 kdfsalt::" $kdfsalt
1631
1631
@@ -1642,8 +1642,8 @@ gen_key() {
1642
1642
pbkdf2_iter=` tomb-kdb-pbkdf2-getiter $microseconds `
1643
1643
_message " encoding the password"
1644
1644
# We use a length of 64bytes = 512bits (more than needed!?)
1645
- tombpass=` tomb-kdb-pbkdf2 $kdf_salt $pbkdf2_iter 64 <<< " ${tombpass}" `
1646
- header=" _KDF_pbkdf2sha1_${kdf_salt } _${pbkdf2_iter} _64\n"
1645
+ tombpass=` tomb-kdb-pbkdf2 $kdfsalt $pbkdf2_iter 64 <<< " ${tombpass}" `
1646
+ header=" _KDF_pbkdf2sha1_${kdfsalt } _${pbkdf2_iter} _64\n"
1647
1647
;;
1648
1648
argon2)
1649
1649
_success " Using Argon2 as KDF"
You can’t perform that action at this time.
0 commit comments