auth

package
v5.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package auth encrypt and compare password string.

Index

Constants

View Source
const TokenProfileAlgorithm = "RS256"

TokenProfileAlgorithm 是 IAM 令牌和 JWKS 密钥支持的唯一 JOSE 算法。

Variables

This section is empty.

Functions

func Compare

func Compare(hashedPassword, password string) error

Compare 比较加密文本与明文是否相同。

func Encrypt

func Encrypt(source string) (string, error)

Encrypt 加密明文。

Types

This section is empty.

Jump to

Keyboard shortcuts

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