aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index f969841..e73c4f4 100644
--- a/main.go
+++ b/main.go
@@ -81,7 +81,7 @@ func Generate(pubFile, encFile, comment string, nopass bool) error {
Comment: fmt.Sprintf("%s secret key", comment),
Bytes: encRaw,
}
- if err := file.EncodeFile(encFile, file.SecMode, sfile); err != nil {
+ if err := file.EncodeFile(encFile, file.EncMode, sfile); err != nil {
return err
}