sign

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

* @Author: kamalyes 501893067@qq.com * @Date: 2024-10-23 17:37:08 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-10-23 17:58:07 * @FilePath: \go-toolbox\pkg\sign\aes.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(cipherText string, key []byte) (string, error)

AesDecrypt 解密函数

func AesEncrypt

func AesEncrypt(plainText string, key []byte) (string, error)

AesEncrypt 加密函数

func GenerateByteKey

func GenerateByteKey(password string, length int) []byte

GenerateByteKey 生成一个指定字节的密钥

func HmacSha256Base64

func HmacSha256Base64(message string, secret string) string

HmacSha256Base64 计算hmac

func HmacSha256Hex

func HmacSha256Hex(message string, secret string) string

HmacSha256Hex 字符串计算sha256之后转hex

func SHA256

func SHA256(text string) string

SHA256 Sha 算签名

Types

This section is empty.

Jump to

Keyboard shortcuts

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