crypto

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package crypto md5、hash1、hash256、hash512签名

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HMacSign

func HMacSign(key string, original string, f func() hash.Hash) string

func Hash1Sign

func Hash1Sign(original []byte) string

Hash1Sign sign tool

func Hash256Sign

func Hash256Sign(original []byte) string

Hash256Sign sign tool

func Hash512Sign

func Hash512Sign(original []byte) string

Hash512Sign sign tool

func Md5Sign

func Md5Sign(original []byte) string

Md5Sign sign tool

func RsaSign

func RsaSign(rsaPriKey string, data string, header bool) (r []byte, err error)

func RsaSignToBase64

func RsaSignToBase64(rsaPriKey string, data string, header bool) (r string, err error)

func RsaVerify

func RsaVerify(rsaPubKey string, data string, signData []byte, header bool) (err error)

func RsaVerifyForBase64

func RsaVerifyForBase64(rsaPubKey string, data string, signData string, header bool) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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