crypto

package
v0.0.0-...-f49c50f Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypto

type Crypto struct{}

func NewCrypto

func NewCrypto() *Crypto

func (*Crypto) Decrypt

func (c *Crypto) Decrypt(encrypted, key []byte) ([]byte, error)

func (*Crypto) Encrypt

func (c *Crypto) Encrypt(buffer, key []byte) ([]byte, error)

func (*Crypto) GenSecretKey

func (c *Crypto) GenSecretKey() []byte

func (*Crypto) Hash

func (c *Crypto) Hash(text string) string

func (*Crypto) VerifyHash

func (c *Crypto) VerifyHash(text, hashedText string) bool

Jump to

Keyboard shortcuts

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