crypt

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Encode

func Base64Encode(data []byte) []byte

func DecodeBase64

func DecodeBase64(b []byte) ([]byte, error)

func DecodeHex

func DecodeHex(b []byte) ([]byte, error)

func Decrypt_aes256_cbc_base64

func Decrypt_aes256_cbc_base64(data []byte, encryptionKey []byte) ([]byte, error)

func Decrypt_aes256_cbc_plain

func Decrypt_aes256_cbc_plain(data []byte, encryptionKey []byte) ([]byte, error)

func Decrypt_aes256_ecb_base64

func Decrypt_aes256_ecb_base64(data []byte, encryptionKey []byte) ([]byte, error)

func Decrypt_aes256_ecb_plain

func Decrypt_aes256_ecb_plain(data []byte, encryptionKey []byte) ([]byte, error)

func EncodeHex

func EncodeHex(b []byte) []byte

func Encrypt_aes256_cbc_base64

func Encrypt_aes256_cbc_base64(plaintext, key []byte) ([]byte, error)

func NewECBDecrypter

func NewECBDecrypter(b cipher.Block) cipher.BlockMode

NewECBDecrypter returns a BlockMode which decrypts in electronic code book mode, using the given Block.

func NewECBEncrypter

func NewECBEncrypter(b cipher.Block) cipher.BlockMode

NewECBEncrypter returns a BlockMode which encrypts in electronic code book mode, using the given Block.

func Pkcs7Pad

func Pkcs7Pad(data []byte, blockSize int) []byte

func Pkcs7Unpad

func Pkcs7Unpad(data []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