Skip to content

Commit

Permalink
~
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Mar 20, 2024
1 parent 631a4ec commit 33b5626
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
5 changes: 0 additions & 5 deletions f
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions sec/aa.age
Original file line number Diff line number Diff line change
@@ -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
u�I��d�Y̨i����4����?$Q�Bְ��J�ɝ��

0 comments on commit 33b5626

Please sign in to comment.