crypto

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IEncryptor

type IEncryptor[T any] interface {
	Encrypt(T) (string, bool)
	Decrypt(string) (T, bool)
}

type ZlibCompressor

type ZlibCompressor[T any] struct {
	IEncryptor[T]
}

func (*ZlibCompressor[T]) Decrypt

func (z *ZlibCompressor[T]) Decrypt(l string) (T, bool)

func (*ZlibCompressor[T]) Encrypt

func (z *ZlibCompressor[T]) Encrypt(l T) (string, bool)

Jump to

Keyboard shortcuts

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