V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 53s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 53s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -246,16 +246,13 @@ fi)\
|
||||
# 0: on success
|
||||
#######################################
|
||||
read_passphrase() {
|
||||
declare -a METHODS=("sha512crypt" "yescrypt" "scrypt" "bcrypt")
|
||||
declare -a METHODS=( "sha512crypt" )
|
||||
declare METHOD="" SALT=""
|
||||
|
||||
PASSPHRASE="$(${ASKPASS} "Enter passphrase: ")"
|
||||
|
||||
if [[ "${NUKE_ENABLED,,}" == 'true' ]]; then
|
||||
|
||||
### Validate NUKE_HASH format (e.g., $id$salt$hash)
|
||||
if [[ "${NUKE_HASH}" =~ ${REGEX} ]]; then
|
||||
|
||||
SALT="$(cut -d'$' -f3 <<< "${NUKE_HASH}")"
|
||||
|
||||
for METHOD in "${METHODS[@]}"; do
|
||||
@@ -271,8 +268,6 @@ read_passphrase() {
|
||||
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -427,8 +422,8 @@ main() {
|
||||
secure_unset_pass
|
||||
# TODO: DEBUGGER
|
||||
echo "Inside if printf %s '${PASSPHRASE}' | cryptroot-unlock; then"
|
||||
drop_bash
|
||||
#exit 0
|
||||
#drop_bash
|
||||
exit 0
|
||||
|
||||
else
|
||||
|
||||
|
||||
Reference in New Issue
Block a user