password-generator: gomodules.xyz/password-generator Index | Files

package password

import "gomodules.xyz/password-generator"

Index

Package Files

password.go

func Generate Uses

func Generate(n int) string

func GenerateForCharset Uses

func GenerateForCharset(n int, chset Charset) string

type Charset Uses

type Charset int
const (
    Uppercase     Charset = 1 << iota // 1 << 0 which is 00000001
    Lowercase                         // 1 << 1 which is 00000010
    Numbers                           // 1 << 2 which is 00000100
    Unreserved                        // 1 << 3 which is 00001000
    Reserved                          // 1 << 4 which is 00010000
    SimpleSymbols                     // 1 << 5 which is 00100000
    Symbols                           // 1 << 6 which is 01000000
    AlphaNum      = Uppercase | Lowercase | Numbers
    Default       = Uppercase | Lowercase | Numbers | SimpleSymbols
)

Package password imports 2 packages (graph) and is imported by 10 packages. Updated 2020-12-03. Refresh now. Tools for package owners.