aes

package
v0.0.0-...-492d98f Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_KEY = "abcdefghijklmnopkrstuvwsyz012345"

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext, key []byte) (decrypted []byte, err error)

func DecryptToString

func DecryptToString(base64Text, key string) (plantText string, err error)

func Encrypt

func Encrypt(plantText, key []byte) (encrypted []byte, err error)

func EncryptToString

func EncryptToString(plantText, key string) (base64Text string, err error)

func Key

func Key(key ...string) []byte

func PKCS5Padding

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

func PKCS5UnPadding

func PKCS5UnPadding(plantText []byte) []byte

func PKCS7Padding

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

func PKCS7UnPadding

func PKCS7UnPadding(plantText []byte, blockSize int) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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