cipher

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt added in v2.2.0

func Decrypt(src string) (string, error)

Decrypt do not guarantee concurrency-safety, it depends on the plugin implementation.

func Encrypt added in v2.2.0

func Encrypt(src string) (string, error)

Encrypt do not guarantee concurrency-safety, it depends on the plugin implementation.

func GetCipherNewFunc

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

GetCipherNewFunc return a function which is able to create a cipher

func Init added in v2.2.0

func Init() error

func InstallCipherPlugin

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

InstallCipherPlugin is a function

func NewCipher added in v2.2.0

func NewCipher(name string) (security.Cipher, error)

NewCipher create and return a cipher

Types

This section is empty.

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