Skip to content

steveanlorn/pwdentropy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pwdentropy

Responsible to measure password strength using entropy value.

How to Use

Example:

package main

import (
	"fmt"
	"log"
	"os"

	"github.com/steveanlorn/pwdentropy"
)

func main() {
	if len(os.Args) < 2 {
		fmt.Fprintln(os.Stderr, "password is required")
		os.Exit(2)
	}

	for _, password := range os.Args[1:] {
		entropy := pwdentropy.Calculate(password)
		log.Printf("Entropy %s: %.2f\n", password, entropy)
	}
}

Entropy Threshold Value

Entropy benchmark table You can refer to that table above for the entropy threshold value.

Resource

About

Measure password strength using entropy value.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages