Add quotes to avoid issues with filenames
This commit is contained in:
parent
4417b05fc3
commit
67d9a2c8e7
1 changed files with 10 additions and 13 deletions
|
@ -3,37 +3,34 @@
|
|||
## Encrypting
|
||||
|
||||
# Encrypt to a recipient's public age key
|
||||
rage -e -r <recipient_public_age_key> <input_file> > <input_file>.age
|
||||
rage -e -r <recipient_public_age_key> "<input_file>" > "<input_file>.age"
|
||||
|
||||
# Encrypt to my public age key
|
||||
rage -e -r <sapphic_public_age_key> <input_file> > <input_file>.age
|
||||
rage -e -r <sapphic_public_age_key> "<input_file>" > "<input_file>.age"
|
||||
|
||||
# Encrypt to a recipient's public age key, in armour format
|
||||
rage -e -r <recipient_public_age_key> -a <input_file> > <input_file>.age
|
||||
rage -e -r <recipient_public_age_key> -a "<input_file>" > "<input_file>.age"
|
||||
|
||||
# Encrypt to my public age key, in armour format
|
||||
rage -e -r <sapphic_public_age_key> -a <input_file> > <input_file>.age
|
||||
rage -e -r <sapphic_public_age_key> -a "<input_file>" > "<input_file>.age"
|
||||
|
||||
# Encrypt to a public SSH key
|
||||
rage -r "<public_ssh_key>" "<input_file_find>" > "<input_file_find>.age"
|
||||
rage -r "<public_ssh_key>" "<input_file>" > "<input_file>.age"
|
||||
|
||||
# Encrypt to a public SSH key saved on disk
|
||||
rage -R ~/.ssh/id_<ssh_key_name>.pub <input_file> > <input_file>.age
|
||||
|
||||
# Encrypt with file list test
|
||||
rage -e -r <sapphic_public_age_key> "<input_file_find>" > "<input_file_find>.age"
|
||||
rage -R ~/.ssh/id_<ssh_key_name>.pub "<input_file>" > "<input_file>.age"
|
||||
|
||||
## Decrypting
|
||||
|
||||
# Decrypt a file using a local key
|
||||
rage -d -i <private_key> <input_file> > <output_file>
|
||||
rage -d -i <private_age_key> "<input_file>" > "<output_file>"
|
||||
|
||||
# Decrypt a file using an SSH private key
|
||||
rage -d -i ~/.ssh/id_<ssh_key_name> "<input_file_find>" > "<output_file>"
|
||||
rage -d -i ~/.ssh/id_<private_ssh_key_name> "<input_file>" > "<output_file>"
|
||||
|
||||
# Decrypt a file using your key (wl-paste)
|
||||
wl-paste | rage -d -i - <input_file> > <output_file>
|
||||
wl-paste | rage -d -i - "<input_file>" > "<output_file>"
|
||||
|
||||
$ sapphic_public_age_key: echo age17r37eg8lmvsklve0rdajsts2rgca4j5twdmcglh6qufxj7qmzv0qywulhg
|
||||
|
||||
$ input_file_find: find . -maxdepth 1 -type f | gum choose
|
||||
$ input_file: find . -maxdepth 1 -type f | gum choose
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue