crypto

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(raw []byte) []byte

Base64Decode base64解密

func Base64DecodeStr

func Base64DecodeStr(bs64str string) string

Base64DecodeStr base64字符串解密

func Base64Encode

func Base64Encode(raw []byte) []byte

Base64Encode base64加密

func Base64EncodeStr

func Base64EncodeStr(raw string) string

Base64EncodeStr base64字符串加密

func DecryptAES

func DecryptAES(src []byte, key []byte) ([]byte, error)

解密

func EncryptAES

func EncryptAES(src []byte, key []byte) ([]byte, error)

加密

func RsaDecrypt

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

解密

func RsaEncrypt

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

加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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