age icon indicating copy to clipboard operation
age copied to clipboard

Error With trying to decrypt Age file

Open meuor opened this issue 3 months ago • 1 comments

Environment

  • OS: Ubuntu 24.04
  • age version: 1.1.1

decrypt file from timelock-dev. I want the data

I tried it many times, but it didn't change anything

age --decrypt --armor -i file.txt.age decrypted.txt
age: error: -a/--armor can't be used with -d/--decrypt
age: hint: note that armored files are detected automatically
age: report unexpected or unhelpful errors at https://filippo.io/age/report

the key

-----BEGIN AGE ENCRYPTED FILE----- 
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHRsb2NrIDIzOTQ0MDk5IDUyZGI5YmE3 MGUwY2MwZjZlYWY3ODAzZGQwNzQ0N2ExZjU0Nzc3MzVmZDNmNjYxNzkyYmE5NDYw MGM4NGU5NzEKZ09zQWhaaWJ0NlhWOC9sWStoRkNadW1XbERoQXdINmdadlR5U0hT NXc1aER3RXE5Nk9GaDYzdExCYS9leUlQQwpEd1crWUd3enBEVkhFWExoUDh6MC91 WkZSenl2cFhBd1NSbWZrNVR5NWVCa2MxdDRIOFphbDRiNENMZGFWY3N3Cms2Y0Z1 N0ZUYkMxRmZnYzVNN2FGbVVjNnpwUXkzanBuK0hxSlJOQ3o4clEKLT4gTS1ncmVh c2UgMHZ3ciRTI04gWSBeICt4CjkzZEFQaUNpR1dNR0Fnc014Qko0eDhFOThtMVl1 cGpLdkQ0bVMwNm1iV1pqdExJRWN6WW9RY3I3NGVNRHZHNUUKeXgrcUlMc3kyK1Z0 NzE5Ny81NUpIOEp0MVR6WGN4NEdVc3FhNkZDUVlWbnhtbXk0cmExaQotLS0gWXJQ WUowaUt3Y2ZML1k2ZlUvQ2xlSk1TUG11S01DWWZEcU5LMjh3Ujl5SQpYgMgzzSiH Pm39dWRdZ70YemiTNtBwqAf8zNFPC18oV2Es0zm5HswwpuSgmN650snTwIdHXgP+ 
eoTWxWP6NI2Y/oLp2gdwQumm 
-----END AGE ENCRYPTED FILE------

meuor avatar Oct 05 '25 20:10 meuor

What about trying

age --decrypt -i file.txt.age decrypted.txt

hakavlad avatar Oct 07 '25 22:10 hakavlad

As the hint says, armored files are detected automatically. Will extend the hint to say "try omitting -armor".

FiloSottile avatar Dec 07 '25 17:12 FiloSottile