middleware

package
v0.0.0-...-2d91a95 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(key []byte, cryptoText string) (string, error)

Decrypt from base64 to decrypted string

func Encrypt

func Encrypt(key []byte, text string) (string, error)

Encrypt string to base64 crypto using AES

Types

type CustomValidator

type CustomValidator struct {
	Validator *validator.Validate
}

CustomValidator definition.

func (*CustomValidator) Validate

func (cv *CustomValidator) Validate(i interface{}) error

Validate is a func for ...

type RSAKeys

type RSAKeys struct {
	VerifyKey *rsa.PublicKey
	SignKey   *rsa.PrivateKey
}

RSAKeys is a struct for store key

var RSA RSAKeys

RSA is struct for store...

func (*RSAKeys) New

func (keys *RSAKeys) New() (err error)

New is a func for ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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