salt

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidSalt

func IsValidSalt(s string) (bool, error)

Types

type Salt

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

func NewRandomSalt

func NewRandomSalt(opts *SaltOptions) (*Salt, error)

func NewSaltFromString

func NewSaltFromString(s string) (*Salt, error)

func (*Salt) Bytes

func (s *Salt) Bytes() []byte

func (*Salt) String

func (s *Salt) String() string

type SaltOptions

type SaltOptions struct {
	Length int
	ASCII  bool
}

func DefaultSaltOptions

func DefaultSaltOptions() *SaltOptions

Jump to

Keyboard shortcuts

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