Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtectObject ¶ added in v0.9.0
ProtectObject returns encrypted object value in base64url encoded format
Types ¶
type Provider ¶
type Provider interface {
// Protect returns protected blob
Protect(ctx context.Context, data []byte) ([]byte, error)
// Unprotect returns unprotected data
Unprotect(ctx context.Context, protected []byte) ([]byte, error)
// IsReady returns true when provider has encryption keys
IsReady() bool
// PublicKey is returned for assymetric signer
PublicKey() crypto.PublicKey
}
Provider interface for data protection
func NewSymmetric ¶
NewSymmetric returns `Provider` based on AES256-GCM encryption
Click to show internal directories.
Click to hide internal directories.