sss

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version1 = 0
)

Variables

View Source
var (
	ErrInvalidFormat = errors.New("invalid format")
	ErrNotSigned     = errors.New("not signed")
)

Functions

func FromSSString

func FromSSString(sss string, opt *Option) (string, error)

func ToSSString

func ToSSString(input string, opt *Option) string

Types

type Option

type Option struct {
	Version int
	Key     []byte
}

func DefaultOption

func DefaultOption() *Option

type SSString

type SSString struct {
	Version    int
	IsCompress bool
	Text       []byte
	HMAC       string
}

func (*SSString) FromSSS

func (s *SSString) FromSSS(stext string, opt *Option) error

func (*SSString) ToSSS

func (s *SSString) ToSSS(opt *Option) string

Jump to

Keyboard shortcuts

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