password

package
v1.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 2 Imported by: 0

README

Password pakcage

Help generate random string usable in password....

Example of implement

In your file, import this lib :

import "github.com/nabbar/golib/password"
// generate a password of 24 chars len
newPass := Generate(24)

The generated password can having this char : - lower letter : abcdefghijklmnopqrstuvwxyz - upper letter : ABCDEFGHIJKLMNOPQRSTUVWXYZ - number : 0123456789 - special char : ,;:!?./*%^$&"'(-_)=+~#{[|`^@]}

An example is available in test/test-password

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(n int) string

Generate Generate a random string could be used as password. The len is defined by given 'n' parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL