mpencrypt

package
v0.0.0-...-3faa710 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package mpencrypt aes User: 姜伟 Time: 2020-02-19 06:27:35

Package mpencrypt rsa User: 姜伟 Time: 2020-02-19 06:29:32

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecryptCBC

func AesDecryptCBC(encrypted, key []byte) []byte

AesDecryptCBC AesDecryptCBC

func AesDecryptCBCPKCS7

func AesDecryptCBCPKCS7(cipherData, aesKey []byte) ([]byte, error)

AesDecryptCBCPKCS7 AesDecryptCBCPKCS7

func AesDecryptCFB

func AesDecryptCFB(encrypted []byte, key []byte) []byte

AesDecryptCFB AesDecryptCFB

func AesDecryptECB

func AesDecryptECB(encrypted []byte, key []byte) []byte

AesDecryptECB AesDecryptECB

func AesEncryptCBC

func AesEncryptCBC(origData, key []byte) []byte

AesEncryptCBC AesEncryptCBC

func AesEncryptCBCPKCS7

func AesEncryptCBCPKCS7(plainData, aesKey []byte) ([]byte, error)

AesEncryptCBCPKCS7 AesEncryptCBCPKCS7

func AesEncryptCFB

func AesEncryptCFB(origData []byte, key []byte) []byte

AesEncryptCFB AesEncryptCFB

func AesEncryptECB

func AesEncryptECB(origData []byte, key []byte) []byte

AesEncryptECB AesEncryptECB

func AesPaddingPKCS7

func AesPaddingPKCS7(cipherText []byte, blockSize int) []byte

AesPaddingPKCS7 AesPaddingPKCS7

func AesUnPaddingPKCS7

func AesUnPaddingPKCS7(origData []byte) []byte

AesUnPaddingPKCS7 AesUnPaddingPKCS7

func RsaDecrypt

func RsaDecrypt(encryptData []byte, privateKey []byte) ([]byte, error)

RsaDecrypt 解密 encryptData []byte 加密数据 privateKey []byte 私钥,私钥文件内容,包含-----BEGIN RSA PRIVATE KEY-----和-----END RSA PRIVATE KEY-----

func RsaEncrypt

func RsaEncrypt(originData []byte, publicKey []byte) ([]byte, error)

RsaEncrypt 加密 originData []byte 原始数据 publicKey []byte 公钥,公钥文件内容,包含-----BEGIN PUBLIC KEY-----和-----END PUBLIC KEY-----

Types

This section is empty.

Jump to

Keyboard shortcuts

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