bcrypt

package
v0.0.0-...-1a196e1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(hashedPassword, password string) error

Compare 會比對已經加密和純文字字串看是否吻合。

func Encrypt

func Encrypt(source string, cost int) (string, error)

Encrypt 會將來源字串透過 bcrypt 加密,如果 `cost` 是 0 則會使用預設的計算花費時間。

Types

This section is empty.

Jump to

Keyboard shortcuts

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