password

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 3 Imported by: 0

README

password

go Go Report Card GoDoc MIT License

This is a simple password generator written in Go.

Prerequisites

  • Go: 1.22+

Installation

go get -u github.com/135yshr/password

Lean more

How to generate
import (
	"fmt"

	"github.com/135yshr/password"
)

func main() {
	gen := password.New()
	fmt.Printf("Generated password: %s\n", gen.Generate(12))
}

Contributing

This project is an open-source endeavor that thrives on your active participation. We're always on the lookout for individuals interested in contributing to the project's growth. If you have any ideas or improvements, no matter how small, they are welcome. Feel free to submit a pull request at any time. We're eagerly awaiting your collaboration!

License

This project is released under the MIT license. See the LICENSE file for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	Generate(length int) Password
}

Generator is a password generator.

func New

func New(policies ...policy.Policy) Generator

New returns a new generator.

type Password

type Password string

Password is a password type.

func (Password) String

func (p Password) String() string

String returns the password string.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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