obscure

package
v2.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 6 Imported by: 0

README

obscure

This package is written for fun.

It's not of any sort of cryptographic secure, don't use it in crypto scenes.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidInput = errors.New("obscure: invalid input")

Functions

This section is empty.

Types

type Obscure

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

func New

func New(key []byte) *Obscure

func (*Obscure) Decode

func (p *Obscure) Decode(dst, src []byte) (n int, err error)

func (*Obscure) DecodeBytes

func (p *Obscure) DecodeBytes(src []byte) ([]byte, error)

func (*Obscure) DecodeID

func (p *Obscure) DecodeID(src []byte) (int64, error)

func (*Obscure) DecodeString

func (p *Obscure) DecodeString(src string) ([]byte, error)

func (*Obscure) DecodedLen

func (p *Obscure) DecodedLen(n int) int

func (*Obscure) Encode

func (p *Obscure) Encode(dst, src []byte)

func (*Obscure) EncodeID

func (p *Obscure) EncodeID(id int64) []byte

func (*Obscure) EncodeToBytes

func (p *Obscure) EncodeToBytes(src []byte) []byte

func (*Obscure) EncodeToString

func (p *Obscure) EncodeToString(src []byte) string

func (*Obscure) EncodedLen

func (p *Obscure) EncodedLen(n int) int

func (*Obscure) Index

func (p *Obscure) Index() string

func (*Obscure) Table

func (p *Obscure) Table() [61]string

Jump to

Keyboard shortcuts

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