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
16.9k stars 495 forks source link

Allow reading identity from stdin as '-' #145

Closed dsprenkels closed 3 years ago

dsprenkels commented 3 years ago

This PR adds support for reading input identities from /dev/stdin, by specifying ./age -d -i - hello.age. When standard input is already being read, age will error with Error reading "-": standard input is used than once.

Fixes #143.

FiloSottile commented 3 years ago

Thank you! I made a few tweaks to your commit and will merge it soon.