Versions in this module Expand all Collapse all v1 v1.1.0 Jan 16, 2021 v1.0.0 Jan 14, 2021 Changes in this version + var ErrBadSignature error = errors.New("bad signature") + var ErrExpired error = errors.New("expired token") + type Signer struct + EXP int64 + func NewSigner(Expiry int64, key []byte, EncVersion int, SignVersion int) Signer + func (s Signer) DecryptAndVerify(data string) ([]byte, error) + func (s Signer) SignAndEncrypt(data []byte) string