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.79k stars 477 forks source link

age Yubikey - malformed recipient #387

Closed stefanclaas closed 2 years ago

stefanclaas commented 2 years ago

Environment

What were you trying to do

I tried to encrypt a small text file.

What happened

age gave an error and could not encrypt the file.

C:\Users\xxxxxxxxxxxx\Desktop>age -r age1yubikey1qggtmdsmnl6wncg22jw8lvfm2qd7s5k5x8rvg4yjfmurkj7g9wcmszcmpfh -o test MIME.txt
age: error: malformed recipient "age1yubikey1qggtmdsmnl6wncg22jw8lvfm2qd7s5k5x8rvg4yjfmurkj7g9wcmszcmpfh": invalid type "age1yubikey"
age: report unexpected or unhelpful errors at https://filippo.io/age/report
schlomie commented 2 years ago

age v1.0.0 does not [yet] support the yubikey plugin. To use yubikeys with age, you will need to use the rust implementation - rage.

stefanclaas commented 2 years ago

Thanks, I already figured it out.

Regards Stefan