commonkeycrypto

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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