My personal cheatsheets for Navi
cheatsheets navi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add quotes to avoid issues with filenames

+10 -13
+10 -13
encrypting/rage.cheat
··· 3 3 ## Encrypting 4 4 5 5 # Encrypt to a recipient's public age key 6 - rage -e -r <recipient_public_age_key> <input_file> > <input_file>.age 6 + rage -e -r <recipient_public_age_key> "<input_file>" > "<input_file>.age" 7 7 8 8 # Encrypt to my public age key 9 - rage -e -r <sapphic_public_age_key> <input_file> > <input_file>.age 9 + rage -e -r <sapphic_public_age_key> "<input_file>" > "<input_file>.age" 10 10 11 11 # Encrypt to a recipient's public age key, in armour format 12 - rage -e -r <recipient_public_age_key> -a <input_file> > <input_file>.age 12 + rage -e -r <recipient_public_age_key> -a "<input_file>" > "<input_file>.age" 13 13 14 14 # Encrypt to my public age key, in armour format 15 - rage -e -r <sapphic_public_age_key> -a <input_file> > <input_file>.age 15 + rage -e -r <sapphic_public_age_key> -a "<input_file>" > "<input_file>.age" 16 16 17 17 # Encrypt to a public SSH key 18 - rage -r "<public_ssh_key>" "<input_file_find>" > "<input_file_find>.age" 18 + rage -r "<public_ssh_key>" "<input_file>" > "<input_file>.age" 19 19 20 20 # Encrypt to a public SSH key saved on disk 21 - rage -R ~/.ssh/id_<ssh_key_name>.pub <input_file> > <input_file>.age 22 - 23 - # Encrypt with file list test 24 - rage -e -r <sapphic_public_age_key> "<input_file_find>" > "<input_file_find>.age" 21 + rage -R ~/.ssh/id_<ssh_key_name>.pub "<input_file>" > "<input_file>.age" 25 22 26 23 ## Decrypting 27 24 28 25 # Decrypt a file using a local key 29 - rage -d -i <private_key> <input_file> > <output_file> 26 + rage -d -i <private_age_key> "<input_file>" > "<output_file>" 30 27 31 28 # Decrypt a file using an SSH private key 32 - rage -d -i ~/.ssh/id_<ssh_key_name> "<input_file_find>" > "<output_file>" 29 + rage -d -i ~/.ssh/id_<private_ssh_key_name> "<input_file>" > "<output_file>" 33 30 34 31 # Decrypt a file using your key (wl-paste) 35 - wl-paste | rage -d -i - <input_file> > <output_file> 32 + wl-paste | rage -d -i - "<input_file>" > "<output_file>" 36 33 37 34 $ sapphic_public_age_key: echo age17r37eg8lmvsklve0rdajsts2rgca4j5twdmcglh6qufxj7qmzv0qywulhg 38 35 39 - $ input_file_find: find . -maxdepth 1 -type f | gum choose 36 + $ input_file: find . -maxdepth 1 -type f | gum choose