linenoise

package module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 5 Imported by: 1

README

linenoise

linenoise is a Go library that generates strings of random characters (herein called a "noise") that can be used as reasonably secure passwords.

Please see the full documentation in the docs directory, also available at https://mcornick.com/linenoise/.

linenoise 1.0.x and 1.1.x are stable. There will be no new features added to linenoise 1.x.x. New features may be added in a 2.0.x branch, if I think of any, but I have none planned right now.

linenoise is available as open source under the terms of the MIT License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Noise

func Noise(p Parameters) (string, error)

Noise creates a password of the specified length if it is valid, or an error if the length is invalid.

Types

type Parameters

type Parameters struct {
	Length              int
	Upper, Lower, Digit bool
}

Parameters is a struct containing the length desired and whether we want the different classes of characters in the password.

Jump to

Keyboard shortcuts

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