ofssha256

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

module designed to define a SHA256 hasher that can be used with the Osgood File Server's Authenticators. this will fit the Hasher interface defined in ofsauthenticators/interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SHA256Hasher

type SHA256Hasher struct{}

func NewSha256Hasher

func NewSha256Hasher() (*SHA256Hasher, error)

func (*SHA256Hasher) ComparePassHash

func (sh *SHA256Hasher) ComparePassHash(password []byte, hash []byte) (err error)

function designed to verify whether the given password is valid by comparing it to a hash.

func (*SHA256Hasher) HashPassword

func (sh *SHA256Hasher) HashPassword(password []byte) (hash []byte, err error)

function designed to hash and return the sha256 sum of a given password.

Jump to

Keyboard shortcuts

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