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
Click to show internal directories.
Click to hide internal directories.