generator

package
v0.0.0-...-a74b051 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2013 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package generator implements a password generator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(useLowerCaseCharacters, useUpperCaseCharacters, useNumbers, useSpecialCharacters bool, customCharacters string, passwordLength int) (generator *Generator, error error)

func (*Generator) Characters

func (generator *Generator) Characters() string

Characters returns the characters the generator uses for generating passwords.

func (*Generator) Password

func (generator *Generator) Password(length int) (string, error)

Password generates a password with the specified length.

Jump to

Keyboard shortcuts

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