【文件属性】:
文件名称:gopass:便携式Golang密码哈希框架
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-18 13:04:04
Go
通行证
便携式Golang密码哈希框架
例子
package main
import (
"fmt"
"github.com/mingqing/gopass"
)
func main() {
password := "abcd.1234"
storeHash := "$P$BRf1O1fo.0QP5XOOAuEbY79g82gfKn/"
p := gopass.NewPasswordHash(8, true)
k, _ := p.HashPassword(password)
fmt.Println("plain:", password)
fmt.Println("hash:", k)
fmt.Println("check:", k, p.CheckPassword(password, k))
fmt.Prin
【文件预览】:
gopass-master
----.gitignore(266B)
----gopass.go(5KB)
----README.md(604B)