Documentation ¶
Index ¶
- type Encryption
- func (encryption *Encryption) Decrypt(data []byte) ([]byte, error)
- func (encryption *Encryption) Encrypt(data []byte) ([]byte, error)
- func (encryption *Encryption) PrepareToken() ([]byte, error)
- func (encryption *Encryption) SetKey(key string)
- func (encryption *Encryption) ValidateToken(token []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encryption ¶
type Encryption struct {
// contains filtered or unexported fields
}
func NewEncryption ¶
func NewEncryption() *Encryption
func (*Encryption) PrepareToken ¶
func (encryption *Encryption) PrepareToken() ([]byte, error)
func (*Encryption) SetKey ¶
func (encryption *Encryption) SetKey(key string)
func (*Encryption) ValidateToken ¶
func (encryption *Encryption) ValidateToken(token []byte) bool
Click to show internal directories.
Click to hide internal directories.