encrypt

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Aes

func Aes(key string) *aesEncrypt

func Base64Decode

func Base64Decode(encoded string) []byte

Base64Decode decode base64 string

func Base64Encode

func Base64Encode(source []byte) string

Base64Encode return base64 string

func Md5

func Md5(s string) string

Md5 return the encrypt string by md5 algorithm

func RsaDecrypt

func RsaDecrypt(privateKey, cipherText []byte) ([]byte, error)

解密

func RsaDecryptPkcs1

func RsaDecryptPkcs1(privateKey, cipherText []byte) ([]byte, error)

func RsaEncrypt

func RsaEncrypt(publicKey, origData []byte) ([]byte, error)

func Sha1

func Sha1(s string) string

Sha1 return hash string

Types

This section is empty.

Jump to

Keyboard shortcuts

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