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 .
This commit is contained in:
parent
e135a72bda
commit
6e029a3799
@ -158,7 +158,7 @@ v1.3 (in progress)
|
|||||||
* Reject file-header-only files
|
* Reject file-header-only files
|
||||||
([#90 2.2](https://github.com/rfjakob/gocryptfs/issues/90),
|
([#90 2.2](https://github.com/rfjakob/gocryptfs/issues/90),
|
||||||
[commit](https://github.com/rfjakob/gocryptfs/commit/14038a1644f17f50b113a05d09a2a0a3b3e973b2))
|
[commit](https://github.com/rfjakob/gocryptfs/commit/14038a1644f17f50b113a05d09a2a0a3b3e973b2))
|
||||||
* Increase max password size to 2000 bytes ([#93](https://github.com/rfjakob/gocryptfs/issues/93))
|
* Increase max password size to 2048 bytes ([#93](https://github.com/rfjakob/gocryptfs/issues/93))
|
||||||
* Use stable 64-bit inode numbers in reverse mode
|
* Use stable 64-bit inode numbers in reverse mode
|
||||||
* This may cause problems for very old 32-bit applications
|
* This may cause problems for very old 32-bit applications
|
||||||
that were compiled without Large File Support.
|
that were compiled without Large File Support.
|
||||||
|
@ -16,8 +16,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
exitCode = 9
|
exitCode = 9
|
||||||
maxPasswordLen = 2000
|
// 2kB limit like EncFS
|
||||||
|
maxPasswordLen = 2048
|
||||||
)
|
)
|
||||||
|
|
||||||
// Once tries to get a password from the user, either from the terminal, extpass
|
// Once tries to get a password from the user, either from the terminal, extpass
|
||||||
|
Loading…
Reference in New Issue
Block a user