auth

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package auth 提供密码哈希与校验。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(password string) (string, error)

Hash 生成密码哈希。 @param password 明文密码 @return 哈希 @return 错误

func Verify

func Verify(password, encoded string) bool

Verify 校验密码。 @param password 明文密码 @param encoded 哈希 @return 是否匹配

Types

This section is empty.

Jump to

Keyboard shortcuts

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