Skip to content

Commit 023045b

Browse files
author
Anand
committed
ref issue #13 - use strong passwords in creating entries
1 parent 5c2350b commit 023045b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

actions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func addNewEntry() error {
239239

240240
if len(passwd) == 0 {
241241
fmt.Printf("\nGenerating password ...")
242-
err, passwd = generateRandomPassword(16)
242+
err, passwd = generateStrongPassword()
243243
fmt.Printf("done")
244244
}
245245
// fmt.Printf("Password => %s\n", passwd)
@@ -315,7 +315,7 @@ func editCurrentEntry(idString string) error {
315315

316316
if strings.ToLower(passwd) == "y" {
317317
fmt.Printf("\nGenerating new password ...")
318-
err, passwd = generateRandomPassword(16)
318+
err, passwd = generateStrongPassword()
319319
}
320320
// fmt.Printf("Password => %s\n", passwd)
321321

0 commit comments

Comments
 (0)