sha256

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSHA256Crypto

func NewSHA256Crypto(config *types.Config) (interfaces.Cryptographic, error)

NewSHA256Crypto creates a new SHA256 crypto instance

Types

type SHA256Crypto

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

SHA256Crypto implements the SHA256 hashing algorithm

func (*SHA256Crypto) Hash

func (c *SHA256Crypto) Hash(password string) (string, error)

Hash implements the hash method

func (*SHA256Crypto) HashWithSalt

func (c *SHA256Crypto) HashWithSalt(password, salt string) (string, error)

HashWithSalt implements the hash with salt method

func (*SHA256Crypto) Verify

func (c *SHA256Crypto) Verify(hashed, password string) error

Verify implements the verify method

Jump to

Keyboard shortcuts

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