summaryrefslogtreecommitdiff
path: root/ar/.local/bin/ecrypt
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-28 19:03:01 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-28 19:03:01 +0900
commitcbd1d349a511da7a861540a5d6ea954d4d06871b (patch)
tree92b932d351a9474e7fd0f12c6c973274daaaa0d9 /ar/.local/bin/ecrypt
parent74cb5de14fc06fe97b6fc306f6176f7d6b467b6b (diff)
updates
Diffstat (limited to 'ar/.local/bin/ecrypt')
-rwxr-xr-xar/.local/bin/ecrypt12
1 files changed, 6 insertions, 6 deletions
diff --git a/ar/.local/bin/ecrypt b/ar/.local/bin/ecrypt
index 67b705d..e13c033 100755
--- a/ar/.local/bin/ecrypt
+++ b/ar/.local/bin/ecrypt
@@ -1,8 +1,8 @@
#!/bin/sh
mount_encrypted() {
- ! mount | grep -q " $1 " && echo "$PASSPHRASE" | sudo mount -t ecryptfs "$1" "$2" \
- -o ecryptfs_cipher=aes,ecryptfs_key_bytes=32,ecryptfs_passthrough=no,ecryptfs_enable_filename_crypto=yes,ecryptfs_sig=$ECRYPTFS_SIG,ecryptfs_fnek_sig=$FNEK_SIG,key=passphrase:passphrase_passwd=$(printf '%s' "$PASSPHRASE")
+ ! mount | grep -q " $1 " && echo "$passphrase" | sudo mount -t ecryptfs "$1" "$2" \
+ -o ecryptfs_cipher=aes,ecryptfs_key_bytes=32,ecryptfs_passthrough=no,ecryptfs_enable_filename_crypto=yes,ecryptfs_sig=$ecryptfs_sig,ecryptfs_fnek_sig=$fnek_sig,key=passphrase:passphrase_passwd=$(printf '%s' "$passphrase")
}
attempt_mount() {
@@ -13,10 +13,10 @@ attempt_mount() {
notify-send "❗ Unable to lock" "Mounted: $3"
fi
else
- ECRYPTFS_SIG=$(pass show encryption/ecryptfs-sig-"$4")
- FNEK_SIG=$ECRYPTFS_SIG
- PASSPHRASE=$(pass show encryption/ecryptfs)
- [ -z "$PASSPHRASE" ] && {
+ ecryptfs_sig=$(pass show encryption/ecryptfs-sig-"$4")
+ fnek_sig=$ecryptfs_sig
+ passphrase=$(pass show encryption/ecryptfs)
+ [ -z "$passphrase" ] && {
notify-send "❌ Failed to retrieve passphrase."
exit 1
}