hashing

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Md5

func Md5(text string) string

func Md5File

func Md5File(file io.Reader) string

func RSADecrypt

func RSADecrypt(encryptedData string, pemPriKey []byte) (string, error)

func RSAEncrypt

func RSAEncrypt(data, pemPubKey []byte) (string, error)

func RSASign

func RSASign(data []byte, pemPriKey []byte, hash crypto.Hash) (string, error)

func RSAVerify

func RSAVerify(src []byte, sign string, pemPubKey []byte, hash crypto.Hash) error

func Sha1

func Sha1(text string) string

Sha1 hashes using sha1 algorithm

func Sha256

func Sha256(text string) string

Sha256 hashes using sha256 algorithm

func Sha512

func Sha512(text string) string

Sha512 hashes using sha512 algorithm

func Sign

func Sign(values url.Values, app_secret string, hash ...string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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