encrypt

package
v0.0.0-...-cb9cbce Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RSADecrypt

func RSADecrypt(base64Data, privateBytes []byte) ([]byte, error)

对数据进行解密操作

func RSAEncrypt

func RSAEncrypt(data, publicBytes []byte) ([]byte, error)

RSA加密

func RSAGenKey

func RSAGenKey(bits int) ([]byte, []byte, error)

生成RSA key

func RSAReadKeyFromFile

func RSAReadKeyFromFile(filename string) []byte

从文件中读取RSA key

Types

This section is empty.

Jump to

Keyboard shortcuts

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