diff --git a/f b/f index a0578c13a..2b5562c3e 100755 --- a/f +++ b/f @@ -55,11 +55,6 @@ export def d [ const age_pub = /run/agenix/age -export def en [name: string] { - rage -e $name -i $age_pub -i ./sec/age-yubikey-identity-7d5d5540.txt.pub -o $'./($name).age' - srm $name -} - export def de [path: string] { let tmp_path = (mktemp -t) rage -d $path -i $age_pub -o $tmp_path # -i ./age-yubikey-identity-7d5d5540.txt.pub diff --git a/justfile b/justfile index 9cdc5061f..6d90998be 100644 --- a/justfile +++ b/justfile @@ -43,10 +43,10 @@ encrypt *args: reduce {|it, acc| $it + (char newline) + $acc } | fzf echo "input file name: " let name = (input) - let raw_path = (mktemp -t) - hx $raw_path - rage -e $raw_path -i $age_pub -i {{ yubikey-ident }} -o $'($output_dir)($name).age' - srm -C $raw_path + let tmp_path = (mktemp -t) + hx $tmp_path + rage -e $tmp_path -i $age_pub -i {{ yubikey-ident }} -o $'($output_dir)($name).age' + srm -C $tmp_path edit-sec *args: #!/usr/bin/env nu diff --git a/sec/aa.age b/sec/aa.age new file mode 100644 index 000000000..32b9f6af7 --- /dev/null +++ b/sec/aa.age @@ -0,0 +1,10 @@ +age-encryption.org/v1 +-> X25519 QudqZksKGheGpRk25dqxsXkzxrRb/otdoO2v5eFCpn0 +9MU2z0nxH0hKrwoGPqtk7NnVV+Cay4PXdZynlrsfLc0 +-> piv-p256 fV1VQA Av+hUOl9cbIzXHOBv9ScUQI+gkeHQEg5cR78UxXG/nrZ +gOG7PuTjlloY+ZCs0xqpo6Vwaf6s75QuWEaF94leIjc +-> T6;!yg^-grease X +d/0hrxcesWT7aOWrLgiQMZFwT8KBsFOACTzJOyqiS/TciOd6mvLBeN+gz6wGzMLS +ayanJfS3TjIQfYY +--- WFQKzCxsDDS3RzAWVT5Jol0ZEG9Q7lrkPaR0uDsEOAY +uIdY̨i4?$QBְJɝ \ No newline at end of file