Documentation ¶
Overview ¶
Package cipher implements simple encrypting and decrypting message
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HasCipher ¶
type HasCipher struct { IsSetKey bool Key IEdgeCipherer }
HasCipher struct
func (*HasCipher) SetCipher ¶
func (h *HasCipher) SetCipher(cipher IEdgeCipherer)
SetCipher function
type IEdgeCipherer ¶
type IEdgeCipherer interface { EncryptByte(byteData []byte) (encryptedByte []byte, err error) EncryptJSONToByte(jsonMap map[string]interface{}) (encryptedByte []byte, err error) DecryptByte(byteData []byte) (decryptedByte []byte, err error) DecryptByteToJSON(data []byte) (jsonMap map[string]interface{}, err error) }
IEdgeCipherer is the interface implemented by encryption/decryption functions
Directories ¶
Path | Synopsis |
---|---|
Package dummy provides the mocking functions
|
Package dummy provides the mocking functions |
Package mock_cipher is a generated GoMock package.
|
Package mock_cipher is a generated GoMock package. |
Package sha256 implements encryption/decryption functions by sha256
|
Package sha256 implements encryption/decryption functions by sha256 |
Click to show internal directories.
Click to hide internal directories.