Commit graph

12 commits

Author SHA1 Message Date
Earnestly 2c37f6565d Support for reading passwords from a specified fd
This initial work adds the -pfd[N] flag to the 7z command so that an
alternate file descriptor (fd) may be specified for reading the password
instead of standard input (stdin).

By adding this flag it becomes possible for 7z to accept data from stdin
for use with the -si flag while also being being able to decrypt a
password protected achieve without revealing the password on the
command line.

For example, generating a secret key and storing it in an encrypted archive
without the need to expose any of the data to a filesystem:

    age-keygen | 7z a -pfd9 9< <(pass show archive) -siid.age archive.7z

As a side effect the password is not echoed to the terminal, however
this PR should not conflict with the work in #33.

Note that the -p flag is necessary if the archive does not exist but
should not be used if it does.
2026-02-16 00:51:36 +00:00
Igor Pavlov 5e96a82794 25.01 2025-08-03 16:14:59 +05:00
Igor Pavlov 395149956d 25.00 2025-07-05 19:27:33 +05:00
Igor Pavlov e5431fa6f5 24.09 2024-11-30 15:27:15 +05:00
Igor Pavlov e008ce3976 24.08 2024-08-12 16:50:32 +05:00
Igor Pavlov a7a1d4a241 24.07 2024-06-19 15:32:41 +05:00
Igor Pavlov 89a73b9012 24.06 2024-05-27 12:41:10 +05:00
Igor Pavlov fc662341e6 24.05 2024-05-15 23:55:04 +05:00
Igor Pavlov 5b39dc76f1 23.01 2023-12-17 14:59:19 +05:00
Igor Pavlov 93be7d4abf 22.01 2023-12-17 14:35:38 +05:00
Igor Pavlov a3e1d22737 22.00 2023-12-17 13:35:20 +05:00
Igor Pavlov f19f813537 '21.07' 2022-03-18 15:35:13 +05:00