From b801581078d4177cae2e8962bb5afe7e85cae9a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petteri=20R=C3=A4ty?= Date: Tue, 3 Dec 2024 14:11:03 +0200 Subject: [PATCH] Document stdin behaviour for getting raw key Document the logic described in makeRawKey. --- cmd/fscrypt/flags.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/fscrypt/flags.go b/cmd/fscrypt/flags.go index 72851330..3d3c51d5 100644 --- a/cmd/fscrypt/flags.go +++ b/cmd/fscrypt/flags.go @@ -222,7 +222,8 @@ var ( Usage: `Use the contents of FILE as the wrapping key when creating or unlocking raw_key protectors. FILE should be formatted as raw binary and should be exactly 32 bytes - long.`, + long. When running non-interactively and no key is provided, + will try to read the key from stdin.`, } userFlag = &stringFlag{ Name: "user",