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

Age doesn't ask for passphrase when dealing with encrypted identity file #282

Closed TensorBlast closed 3 years ago

TensorBlast commented 3 years ago

The below example is from the official README:

$ age-keygen | age -p > key.age
Public key: age1yhm4gctwfmrpz87tdslm550wrx6m79y9f2hdzt0lndjnehwj0ukqrjpyx5
Enter passphrase (leave empty to autogenerate a secure one):
Using the autogenerated passphrase "hip-roast-boring-snake-mention-east-wasp-honey-input-actress".
$ age -r age1yhm4gctwfmrpz87tdslm550wrx6m79y9f2hdzt0lndjnehwj0ukqrjpyx5 secrets.txt > secrets.txt.age
$ age -d -i key.age secrets.txt.age > secrets.txt
Enter passphrase for identity file "key.age":

This fails on my system and age doesn't ask for passphrase for the identity file. Instead the following error is produced: Error reading "key.age": failed to read "key.age": error at line 1: malformed secret key: separator '1' at invalid position: pos=20, len=21

My system is a Macbook Pro with Apple M1 running MacOS Big Sur 11.4 and Age version 1.0.0-rc2

FiloSottile commented 3 years ago

This feature is new in v1.0.0-rc.3. Please update and let me know if it still doesn’t work.

TensorBlast commented 3 years ago

Ok. Waiting for homebrew to update to rc3...

On 15 Jun 2021, at 7:07 PM, Filippo Valsorda @.***> wrote:

This feature is new in v1.0.0-rc.3. Please update and let me know if it still doesn’t work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/FiloSottile/age/issues/282#issuecomment-861504985, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKJU2V7J66Q3LFSO2WXJX3TS5JQVANCNFSM46XIT2YA.