zcrypt

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

inspired by bcrypt: https://zhuanlan.zhihu.com/p/400196101 zcrypt algorithm: random_id.timestamp.hmacSha256(password, timestamp)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(password, hash string) bool

Compare a hash with password

func Generate

func Generate(password string) string

Generate a hash from password

Types

This section is empty.

Jump to

Keyboard shortcuts

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