sha256

package
v0.2.13 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 Sha256 added in v0.0.22

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

Sha256 implements the Sha256 hashing algorithm

func (*Sha256) Hash added in v0.0.22

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

Hash implements the hash method

func (*Sha256) HashWithSalt added in v0.0.22

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

HashWithSalt implements the hash with salt method

func (*Sha256) Verify added in v0.0.22

func (c *Sha256) 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