FiloSottile / age

A simple, modern and secure encryption tool (and Go library) with small explicit keys, no config options, and UNIX-style composability.
https://age-encryption.org
BSD 3-Clause "New" or "Revised" License
15.95k stars 482 forks source link

Output argument not working when decrypting a file #335

Closed mcdallas closed 2 years ago

mcdallas commented 2 years ago

Environment

What were you trying to do

Decrypt a file using the --output argument

What happened

The decrypted file is not being written to the output

$ ls    
age.key    backup.tar.gz.age

$ age -d -o backup.tar.gz -i age.key backup.tar.gz.age
Enter passphrase for identity file "age.key":

$ ls
age.key    backup.tar.gz.age

$ age -d -i age.key backup.tar.gz.age > backup.tar.gz                                                                                            
Enter passphrase for identity file "age.key":

$ ls                                                                                                                                             
age.key     backup.tar.gz     backup.tar.gz.age

$ age --version                                                                                                                                  
v1.0.0
mcdallas commented 2 years ago

nevermind I messed up the encryption, closing