tripledes

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(text []byte, key []byte, ivDes ...byte) ([]byte, error)

func DecryptToString

func DecryptToString(text string, key string, iv ...byte) (string, error)

func Encrypt

func Encrypt(text []byte, key []byte, ivDes ...byte) ([]byte, error)

func EncryptToString

func EncryptToString(text string, key string, iv ...byte) (string, error)

func EncryptToStringWithEnv added in v1.1.3

func EncryptToStringWithEnv(text string) string

func PKCS5Padding

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

func PKCS5UnPadding

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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