crypto

package module
v0.0.0-...-dbb8871 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 7 Imported by: 2

README

crypto

AFAIRE

Go Report Card Go Reference

Licence

MIT.


Copyright (c) 2021-2022 losyme

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypto

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

func New

func New() *Crypto

func (*Crypto) Decrypt

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

func (*Crypto) DecryptString

func (c *Crypto) DecryptString(text string) (string, error)

func (*Crypto) Encrypt

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

func (*Crypto) EncryptString

func (c *Crypto) EncryptString(text string) (string, error)

func (*Crypto) SetKey

func (c *Crypto) SetKey(key string) error

Jump to

Keyboard shortcuts

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