cipher

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher

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

func New

func New(key string) (x *Cipher, err error)

New initialize data encryption

func (*Cipher) Decode

func (x *Cipher) Decode(text string) ([]byte, error)

Decode data decryption

func (*Cipher) DecodeId

func (x *Cipher) DecodeId(value string) ([]int, error)

DecodeId ID decryption

func (*Cipher) Encode

func (x *Cipher) Encode(data []byte) (string, error)

Encode data encryption

func (*Cipher) EncodeId

func (x *Cipher) EncodeId(value []int) (string, error)

EncodeId ID encryption

Jump to

Keyboard shortcuts

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