generator

package
v0.0.0-...-ce21008 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator allow generate a new password

func New

func New(SN, SP, SR, SLen int) Generator

New : _

func NewByDefault

func NewByDefault() Generator

NewByDefault : _

func (Generator) CreateNewPassword

func (g Generator) CreateNewPassword(pass string) ([]byte, []byte, error)

CreateNewPassword generate encrypted password and return it with the random salt and error status

func (Generator) GetEncryptedPassword

func (g Generator) GetEncryptedPassword(pass string, salt []byte) ([]byte, error)

GetEncryptedPassword return the encrypted password with the salt specified on parameter

Jump to

Keyboard shortcuts

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