hash

package
v0.0.0-...-9528f6d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(hash string, password string) bool

Check determines if a password matches a hash

func FileMd5

func FileMd5(path string) (string, error)

FileMd5 returns a md5 hash of a file

func HmacSha256

func HmacSha256(str string, key string) string

HmacSha256 returns a hmac sha256 hash of a string

func Make

func Make(password string) ([]byte, error)

Make a bcrypt password from a plaintext password

func Md5

func Md5(str string) string

Md5 returns a md5 hash of a string

func Sha1

func Sha1(str string) string

Sha1 returns a sha1 hash of a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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