generator

package module
v0.0.0-...-4c1a1c1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: MIT Imports: 6 Imported by: 0

README

Generator

Strong password generation.

Install

use go get github.com/JulianMcJayson/generator for installing. then import using

import (
  "github.com/JulianMcJayson/generator"
)

password, err := generator.Generate()

Performance

This library can generate up to 27,693 passwords per second.


Thank you.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PASSWORD_LENGTH = 18
View Source
var SpacialChars = []string{"@", "!", "$", "%", "^", ">", "<", "*", "(", ")", "[", "]", "{", "}", "+", "-", "/", "|", "~", "?"}

Functions

func CountInt

func CountInt(str string) int

func Generate

func Generate() (string, error)

func RandomSpacialChar

func RandomSpacialChar(d string) string

func RandomUpper

func RandomUpper(str string) string

func Swap

func Swap(d, beginString, targetString string, begin, target int) string

Types

type BoolDictionary

type BoolDictionary []bool

func (BoolDictionary) Add

func (BoolDictionary) Contain

func (d BoolDictionary) Contain(v bool) bool

type IntDictionary

type IntDictionary []int

func (IntDictionary) Add

func (d IntDictionary) Add(v int) IntDictionary

func (IntDictionary) Contain

func (d IntDictionary) Contain(v int) bool

type StringDictionary

type StringDictionary []string

func (StringDictionary) Add

func (StringDictionary) Contain

func (d StringDictionary) Contain(v string) bool

func (StringDictionary) Insert

Jump to

Keyboard shortcuts

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