encryptutil

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESCBCPKCS5Decrypt

func AESCBCPKCS5Decrypt(key32, ciphertext []byte) ([]byte, error)

func AESCBCPKCS5DecryptBase64

func AESCBCPKCS5DecryptBase64(key32, ciphertext string) (string, error)

func AESCBCPKCS5Encrypt

func AESCBCPKCS5Encrypt(key []byte, vector []byte, data []byte) ([]byte, error)

func AESCBCPKCS5EncryptBase64

func AESCBCPKCS5EncryptBase64(key32 string, data string) (string, error)

func PKCS5Padding

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

func PKCS5Unpadding

func PKCS5Unpadding(origData []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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