Help us shape the future of Go! Take the 2026 Go Developer Survey

cipher

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: BSD-3-Clause Imports: 4 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 {
	AEAD cipher.AEAD
}

func NewCipher

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

NewCipher 创建加密

func (*Cipher) Decode

func (x *Cipher) Decode(ciphertext string) (data []byte, err error)

Decode 解密

func (*Cipher) Encode

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

Encode 加密

Jump to

Keyboard shortcuts

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