Various fixes

This commit is contained in:
Adrian Gallagher
2017-04-20 21:35:23 +10:00
parent fb6d966007
commit 77ca9cc2b7
14 changed files with 141 additions and 136 deletions

View File

@@ -41,7 +41,7 @@ func PromptForConfigKey() ([]byte, error) {
var cryptoKey []byte
for len(cryptoKey) != 32 {
fmt.Println("Enter password (32 characters):")
log.Println("Enter password (32 characters):")
_, err := fmt.Scanln(&cryptoKey)
if err != nil {
@@ -49,7 +49,7 @@ func PromptForConfigKey() ([]byte, error) {
}
if len(cryptoKey) > 32 || len(cryptoKey) < 32 {
fmt.Println("Please re-enter password (32 characters):")
log.Println("Please re-enter password (32 characters):")
}
}
nonce := make([]byte, 12)