fernetool

package
v0.3.10-0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SFernetKeyManager

type SFernetKeyManager struct {
	// contains filtered or unexported fields
}

func (*SFernetKeyManager) Decrypt

func (m *SFernetKeyManager) Decrypt(tok []byte) []byte

func (*SFernetKeyManager) Encrypt

func (m *SFernetKeyManager) Encrypt(msg []byte) ([]byte, error)

func (*SFernetKeyManager) InitEmpty

func (m *SFernetKeyManager) InitEmpty() error

func (*SFernetKeyManager) InitKeys

func (m *SFernetKeyManager) InitKeys(path string, cnt int) error

func (*SFernetKeyManager) LoadKeys

func (m *SFernetKeyManager) LoadKeys(path string) error

func (*SFernetKeyManager) PrimaryKeyHash

func (m *SFernetKeyManager) PrimaryKeyHash() string

func (*SFernetKeyManager) SetKeys

func (m *SFernetKeyManager) SetKeys(keys []*fernet.Key)

func (*SFernetKeyManager) VerifyAndDecrypt

func (m *SFernetKeyManager) VerifyAndDecrypt(tok []byte, ttl time.Duration) []byte

Jump to

Keyboard shortcuts

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