passgen

package module
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: MIT Imports: 3 Imported by: 0

README

passgen

Build Status codecov Go Report Card

Simple password (or string generator) library for golang

Disclaimer

This project is inspired by cmiceli's password-generator-go

Benchmark

This benchmark generates string with 32 characters long.

BenchmarkNewPasswordAllChars-4           2000000               749 ns/op              32 B/op          1 allocs/op
BenchmarkNewPasswordCapsChars-4          2000000               731 ns/op              32 B/op          1 allocs/op
BenchmarkNewPasswordLowerChars-4         2000000               741 ns/op              32 B/op          1 allocs/op
BenchmarkNewPasswordNumberChars-4        2000000               737 ns/op              32 B/op          1 allocs/op
BenchmarkNewPasswordSymbolChars-4        2000000               739 ns/op              32 B/op          1 allocs/op
BenchmarkNewPasswordMixedChars-4         2000000               760 ns/op              32 B/op          1 allocs/op

LICENSE

Please see LICENSE

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPassword

func NewPassword(length int, options ...string) string

NewPassword will generate random string equal to length and options provided

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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