passgen

package
v0.0.0-...-768a7c8 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package passgen wraps package pass to generate random passwords.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePassword

func GeneratePassword(number, symbol bool, len int) (string, error)

GeneratePassword generates a random password with options. It can include numbers if `number` is true and symbols if `symbol` is true. The length of the password is determined by the `len` parameter. It returns error if `len` <= 0.

Types

This section is empty.

Jump to

Keyboard shortcuts

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