Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonKeyCrypto ¶
type CommonKeyCrypto struct { Identifier string // contains filtered or unexported fields }
CommonKeyCrypto represents CommonKeyCrypto struct
func NewCommonKeyCrypto ¶
func NewCommonKeyCrypto(commonKey []byte) (*CommonKeyCrypto, error)
NewCommonKeyCrypto create CommonKeyCrypto struct
func (*CommonKeyCrypto) Decrypt ¶
func (ck *CommonKeyCrypto) Decrypt(input string) (string, error)
Decrypt decrypts input data with commonkey encryption
func (*CommonKeyCrypto) Encrypt ¶
func (ck *CommonKeyCrypto) Encrypt(input string) string
Encrypt encrypts input data with commonkey encryption
Click to show internal directories.
Click to hide internal directories.