Documentation ¶
Index ¶
- type SFernetKeyManager
- func (m *SFernetKeyManager) Decrypt(tok []byte) []byte
- func (m *SFernetKeyManager) Encrypt(msg []byte) ([]byte, error)
- func (m *SFernetKeyManager) InitEmpty() error
- func (m *SFernetKeyManager) InitKeys(path string, cnt int) error
- func (m *SFernetKeyManager) LoadKeys(path string) error
- func (m *SFernetKeyManager) PrimaryKeyHash() string
- func (m *SFernetKeyManager) SetKeys(keys []*fernet.Key)
- func (m *SFernetKeyManager) VerifyAndDecrypt(tok []byte, ttl time.Duration) []byte
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) 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
Click to show internal directories.
Click to hide internal directories.