crypt

package
v0.0.0-...-51e328c Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func XOR

func XOR(input, key string) (output string)

Types

type AES

type AES struct {
	Key Pair
	IV  Pair
}

func NewAES

func NewAES() (*AES, error)

func NewAESFromBase64Pairs

func NewAESFromBase64Pairs(key64 string, iv64 string) (*AES, error)

func (*AES) Decrypt

func (a *AES) Decrypt(cipherdata []byte) ([]byte, error)

func (*AES) Encrypt

func (a *AES) Encrypt(plaindata []byte) ([]byte, error)

type Pair

type Pair struct {
	Bytes  []byte
	Base64 string
}

Jump to

Keyboard shortcuts

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