cipher

package
v0.0.0-...-5b9616e Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCbcDecrypt

func AesCbcDecrypt(cipherText, key []byte, ivAes ...byte) ([]byte, error)

decrypt

func AesCbcEncrypt

func AesCbcEncrypt(plainText, key []byte, ivAes ...byte) ([]byte, error)

encrypt

func GetRsaKey

func GetRsaKey() error

func PKCS5Padding

func PKCS5Padding(plainText []byte, blockSize int) []byte

func PKCS5UnPadding

func PKCS5UnPadding(plainText []byte) ([]byte, error)

func RsaDecrypt

func RsaDecrypt(cryptText, key []byte) (plainText []byte, err error)

func RsaEncrypt

func RsaEncrypt(plainText, key []byte) (cryptText []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