encrypt

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecrypt

func AESDecrypt(src []byte, aesKeyPath string) ([]byte, error)

AESDecrypt AES 解密

func AESEncrypt

func AESEncrypt(src []byte, aesKeyPath string) ([]byte, error)

AESEncrypt AES 加密

func Base64Decode

func Base64Decode(src string) ([]byte, error)

Base64Decode Base64 解码成 []byte

func Base64Encode

func Base64Encode(src []byte) string

Base64Encode Base64 编码成 string

func RSADecrypt

func RSADecrypt(cipherText []byte, privKeyPath string) ([]byte, error)

RSADecrypt RSA 解密

func RSAEncrypt

func RSAEncrypt(plainText []byte, pubKeyPath string) ([]byte, error)

RSAEncrypt RSA 加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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