Documentation ¶
Index ¶
- Constants
- Variables
- func CleanCertificate(cert string) string
- func DecodePrivateKey(keyString []byte) (*rsa.PrivateKey, error)
- func GeneratePassword(passwd string) (string, error)
- func MeetComplxity(passwd string) bool
- func RandomPassword(width int) string
- func RandomPassword2(width int) string
- type PasswordStrength
Constants ¶
View Source
const ( DIGITS = "23456789" LETTERS = "abcdefghjkmnpqrstuvwxyz" UPPERS = "ABCDEFGHJKMNPRSTUVWXYZ" PUNC = "@^-+=" ALL_DIGITS = "0123456789" ALL_LETTERS = "abcdefghijklmnopqrstuvwxyz" ALL_UPPERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ALL_PUNC = "~`!@#$%^&*()-_=+[]{}|:';\",./<>?" )
Variables ¶
View Source
var WEAK_PASSWORDS []string = []string{}/* 129 elements not displayed */
Functions ¶
func CleanCertificate ¶ added in v1.10.0
func DecodePrivateKey ¶ added in v1.10.0
func DecodePrivateKey(keyString []byte) (*rsa.PrivateKey, error)
func GeneratePassword ¶ added in v1.10.0
func MeetComplxity ¶ added in v1.10.0
func RandomPassword ¶
func RandomPassword2 ¶ added in v1.10.0
Types ¶
type PasswordStrength ¶ added in v1.10.0
type PasswordStrength struct { Digits int Lowercases int Uppercases int Punctuats int Invalid []byte }
func AnalyzePasswordStrenth ¶ added in v1.10.0
func AnalyzePasswordStrenth(passwd string) PasswordStrength
func (PasswordStrength) Len ¶ added in v1.10.0
func (ps PasswordStrength) Len() int
func (PasswordStrength) MeetComplexity ¶ added in v1.10.0
func (ps PasswordStrength) MeetComplexity() bool
Click to show internal directories.
Click to hide internal directories.