security

package
v0.0.0-...-cdfbdfc Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(crypted, key []byte) (originData []byte, err error)

AesDecrypt 解密

func AesEncrypt

func AesEncrypt(originData, key []byte) (crypted []byte, err error)

AesEncrypt 加密

func RsaDecrypt

func RsaDecrypt(ciphertext []byte, privateKeyPath string) ([]byte, error)

RsaDecrypt 解密

func RsaEncrypt

func RsaEncrypt(data []byte, publicKeyPath string) ([]byte, error)

RsaEncrypt 加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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