summaryrefslogtreecommitdiff
path: root/cmd/goaes/commands/encrypt.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/goaes/commands/encrypt.go')
-rw-r--r--cmd/goaes/commands/encrypt.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/goaes/commands/encrypt.go b/cmd/goaes/commands/encrypt.go
index b50ef97..df707cb 100644
--- a/cmd/goaes/commands/encrypt.go
+++ b/cmd/goaes/commands/encrypt.go
@@ -21,7 +21,9 @@ func Encrypt(ctx context.Context, cmd *cli.Command) error {
return err
}
- payload, err := internal.Encrypt(plaintext)
+ passphrase := os.Getenv(PassphraseEnvVar)
+
+ payload, err := internal.Encrypt(passphrase, plaintext)
if err != nil {
return err
}