add password generator

This commit is contained in:
2025-03-07 12:33:40 -05:00
parent 116be25489
commit 0d386e2d9f
27 changed files with 17895 additions and 42 deletions

13
generator/passphrase.go Normal file
View File

@@ -0,0 +1,13 @@
package generator
import (
"strings"
"github.com/sethvargo/go-diceware/diceware"
)
func GeneratePassphrase(words int) string {
list, _ := diceware.Generate(words)
return strings.Join(list, " ")
}