Popularity
0.4
Declining
Activity
0.0
Stable
1
2
0

Programming language: Go
License: MIT License
Tags: Security     String     Generator    

Go random string generator alternatives and similar packages

Based on the "Security" category.
Alternatively, view Go random string generator alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Go random string generator or a related project?

Add another 'Security' Package

README

Go random string generator

Build Status Coverage Status Go Report Card GoDoc

Usage

import "github.com/go-passwd/randomstring"

Documentation

https://go-passwd.github.io/randomstring.html

Rules functions

Length rule function

Returns a length of a string to generate.

NewLength(n uint)

Sets string length to n.

NewLengthRange(min, max uint)

Sets string length to length between min and max

Charset rule function

Modify a charset and returns it.

NewIncludeCharset(chars string)

Add chars to charset.

NewExcludeCharset(chars string)

Removes chars from charset.

Output rule function

NewBeginWith(letters string)

Checks if newly selected at random char does start with a one of letters. Function only executed at first char.

NewNoDuplicateCharacters()

Checks if string doesn't have newly selected at random char.

NewNoSequentialCharacters(n uint)

Checks if string doesn't have n sequentials characters.

Generate rule function

Generates a new string based on: charset, length and output rules.

NewDefaultGenerate()

Simple random string generator.