Hi,
I would love to have this optional feature in restic where you must provide both keyfile and a password to encrypt/decrypt the backup. As a reference… KeePassXC has this feature.
I was more thinking about a built in feature, where you can provide the keyfile in the command line and additionally have to provide the password in a prompt.
--password-command is a much more platform neutral way of doing that, so that’s the way. There’s no point in writing something more specific in restic that doesn’t lend itself to pretty much any keybased system that you might have.