aboutsummaryrefslogtreecommitdiff
path: root/internal/readpassword
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-04-29 15:15:11 +0200
committerJakob Unterwurzacher2017-04-29 15:15:11 +0200
commit6e029a3799816dd6703b2cb573022c7c3fd15c39 (patch)
tree8c4902b1426cf1a37ca88508d9b09a1e8be72973 /internal/readpassword
parente135a72bda6ffa828e5445a16c349dd7017db282 (diff)
readpassword: increase max password size to 2048
This is the value EncFS uses, so let's follow suit. Suggested at https://github.com/rfjakob/gocryptfs/issues/77 .
Diffstat (limited to 'internal/readpassword')
-rw-r--r--internal/readpassword/read.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/readpassword/read.go b/internal/readpassword/read.go
index c96f5e9..563c62d 100644
--- a/internal/readpassword/read.go
+++ b/internal/readpassword/read.go
@@ -16,8 +16,9 @@ import (
)
const (
- exitCode = 9
- maxPasswordLen = 2000
+ exitCode = 9
+ // 2kB limit like EncFS
+ maxPasswordLen = 2048
)
// Once tries to get a password from the user, either from the terminal, extpass