Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EncryptedData ¶
type EncryptedData struct { // Encrypted data. Encrypted []byte // Generated encryption key. Key key.GeneratedKey }
Data returned from an encryption operation.
type SealBuilder ¶
type SealBuilder struct { Id string Salt string IV string B64 string Expiration int64 // contains filtered or unexported fields }
Builder for creating and parsing seals.
func (SealBuilder) Build ¶
func (sb SealBuilder) Build(keyCfg key.Config) (string, error)
Build a new seal.
func (*SealBuilder) GetHmacSalt ¶
func (sb *SealBuilder) GetHmacSalt() string
Retrieve the stored HMAC salt.
Click to show internal directories.
Click to hide internal directories.