Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
b5b528603d lock: use openssl instead of gpg 2025-03-07 20:57:18 +01:00

View file

@ -9,11 +9,7 @@ error() {
[ -n "$1" ] || error "input file missing" [ -n "$1" ] || error "input file missing"
[ -r "$1" ] || error "can't read input file" [ -r "$1" ] || error "can't read input file"
# shellcheck disable=SC2016 # I don't want $(tty) to be expanded
printf '#!/bin/sh printf '#!/bin/sh
GPG_TTY=$(tty) openssl enc -d -aes256 -pbkdf2 -base64 <<EOF
export GPG_TTY
base64 -d <<EOF | gpg -d
%s %s
EOF EOF' "$(openssl enc -aes256 -pbkdf2 -base64 -in "$1")"
' "$(gpg -c --cipher-algo AES256 -o - -- "$1" | base64)"