crypto

package
v0.0.0-...-5859b4f Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t string) string

func PKCS7Padding

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

func PKCS7UnPadding

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

Types

type Crypto

type Crypto interface {
	Encrypt(src []byte) []byte
	Decrypt(src []byte) ([]byte, error)
}

Crypto ...

func NewAesCrypto

func NewAesCrypto() Crypto

NewAesCrypto ...

Jump to

Keyboard shortcuts

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