secure

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMD5Hash

func GetMD5Hash(text string) string

func GetSHA512Hash added in v0.0.2

func GetSHA512Hash(text string) string

Types

type BcryptResolver

type BcryptResolver struct{}

func (*BcryptResolver) Check

func (b *BcryptResolver) Check(h string, password string) bool

type HashResolver

type HashResolver interface {
	Check(h string, password string) bool
}

type MD5Resolver

type MD5Resolver struct{}

func (*MD5Resolver) Check

func (m *MD5Resolver) Check(h string, password string) bool

type PlaintextResolver

type PlaintextResolver struct{}

func (*PlaintextResolver) Check

func (p *PlaintextResolver) Check(h string, password string) bool

type SHA512Resolver added in v0.0.2

type SHA512Resolver struct{}

func (*SHA512Resolver) Check added in v0.0.2

func (s *SHA512Resolver) Check(h string, password string) bool

Jump to

Keyboard shortcuts

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