security

package
v0.0.0-...-5e0f84c Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package security created on 2017/6/22

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCipherNewFunc

func GetCipherNewFunc(name string) (func() Cipher, error)

GetCipherNewFunc is a function

func InstallCipherPlugin

func InstallCipherPlugin(name string, f func() Cipher)

InstallCipherPlugin is a function

Types

type Cipher

type Cipher interface {
	Encrypt(src string) (string, error)

	Decrypt(src string) (string, error)
}

Cipher interface declares two function for encryption and decryption

Directories

Path Synopsis
plugins
aes
plain
Package plain created on 2017/6/22
Package plain created on 2017/6/22

Jump to

Keyboard shortcuts

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