security

package
v0.0.0-...-a7c7adb Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenRSAKey

func GenRSAKey(size int) (privateKeyBytes, publicKeyBytes []byte, err error)

GenRSAKey 生成RSA密钥对

func RsaDecrypt

func RsaDecrypt(src, privateKeyBytes []byte) (bytesDecrypt []byte, err error)

私钥解密

func RsaDecryptBlock

func RsaDecryptBlock(src, privateKeyBytes []byte) (bytesDecrypt []byte, err error)

私钥解密-分段

func RsaEncrypt

func RsaEncrypt(src, publicKeyByte []byte) (bytes []byte, err error)

RsaEncrypt 公钥加密

func RsaEncryptBlock

func RsaEncryptBlock(src, publicKeyByte []byte) (bytesEncrypt []byte, err error)

公钥加密-分段

Types

This section is empty.

Jump to

Keyboard shortcuts

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