aes

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AESCipher

type AESCipher struct {
	// contains filtered or unexported fields
}

AESCipher is a cipher used in huawei

func (*AESCipher) Decrypt

func (ac *AESCipher) Decrypt(src string) (string, error)

Decrypt is method used for decryption

func (*AESCipher) Encrypt

func (ac *AESCipher) Encrypt(src string) (string, error)

Encrypt is method used for encryption

type Cipher

type Cipher interface {
	Init()
	Encrypt(src string) (string, error)
	Decrypt(src string) (string, error)
}

Cipher interface declares Init(), Encrypyt(), Decrypyt() methods

Jump to

Keyboard shortcuts

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