session

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrBadKey           = errors.Err("bad key")
	ErrExpiredKey       = errors.Err("expired key")
	ErrInvalidSignature = errors.Err("invalid signature")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher

type Cipher struct {
	SecretKey string
	TTL       time.Duration
	Hash      func() hash.Hash
	Seperator string
}

func (*Cipher) Decrypt

func (c *Cipher) Decrypt(str string) (string, error)

func (*Cipher) Encrypt

func (c *Cipher) Encrypt(str string) string

Jump to

Keyboard shortcuts

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