Help us shape the future of Go! Take the 2026 Go Developer Survey

gocheckpasswd

package module
v0.0.0-...-0879e64 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: BSD-3-Clause Imports: 1 Imported by: 0

README

go-check-passwd

A tool to see if password is commonly used or not

Install

go get github.com/ninja-software/go-check-passwd

Example

package main

import (
    "fmt"
    "time"

    "github.com/ninja-software/go-check-passwd"
)

func main() {
    pass := "123456"

    if gocheckpasswd.IsCommon(pass) {}
        fmt.Printf("%s is a commonly used password\n", pass)
    else {
        fmt.Printf("%s is not a commonly used password\n", pass)
    }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCommon

func IsCommon(password string) bool

IsCommon check is the password a common password

Types

This section is empty.

Jump to

Keyboard shortcuts

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