gxxor

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package gxxor implements the xor crypto alg.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Xor

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

func NewXor

func NewXor(key []byte) *Xor

func (*Xor) Decrypt

func (x *Xor) Decrypt(cryptTxt string) (string, error)

func (*Xor) DecryptBytesInBase64

func (x *Xor) DecryptBytesInBase64(bytes []byte) ([]byte, error)

func (*Xor) DecryptInBase64

func (x *Xor) DecryptInBase64(cryptTxt string) (string, error)

func (*Xor) Encrypt

func (x *Xor) Encrypt(txt string) string

func (*Xor) EncryptBytesInBase64

func (x *Xor) EncryptBytesInBase64(txt []byte) []byte

func (*Xor) EncryptInBase64

func (x *Xor) EncryptInBase64(txt string) string

Jump to

Keyboard shortcuts

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