core

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IDRoute  = "/{id:" + id + "}"
	AIDRoute = "/{aid:" + id + "}"
)

Variables

View Source
var NameRe = regexp.MustCompile(nameReReverse)

Functions

This section is empty.

Types

type Encoding

type Encoding int
const (
	Hex Encoding = iota
	Base32
	Base64
	Base64URL
)

func EncodingFromString

func EncodingFromString(e string) Encoding

func (Encoding) Decode

func (e Encoding) Decode(src string) ([]byte, error)

func (Encoding) EncodeToString

func (e Encoding) EncodeToString(src []byte) string

func (Encoding) String

func (e Encoding) String() string

type Key

type Key struct {
	ID       string
	Name     string
	Size     int
	Encoding Encoding
	Type     Type
	Key      string
}

type Keys

type Keys []Key

type TableWriter

type TableWriter interface {
	Len() int
	Fields() string
	Values() []string
}

type Type

type Type int
const (
	Plain Type = iota
	Shamir
	Xor
)

func TypeFromString

func TypeFromString(t string) Type

func (Type) Decode

func (t Type) Decode(src []byte) ([]byte, error)

func (Type) Encode

func (t Type) Encode(src []byte) ([]byte, error)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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