Documentation ¶
Overview ¶
Package gcpcrypt contains a client of GCP Cloud KMS symmetric encryption. GCP Cloud KMS symmetric encryption service is an encryption/decryption service where keys are stored securely on GCP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client of GCP CloudKMS symmetric encryption service. Sensitive data should be encrypted in database. With GCP CloudKMS, we don't need to worry about how to store the key safely. This Client wraps CloudKMS client in common interface, developer can easier support other KMS.
func New ¶
func New(ctx context.Context, projectID, keyRingLocation, keyRingName, keyName string, client *kms.KeyManagementClient) (*Client, error)
New returns Client.
Directories ¶
Path | Synopsis |
---|---|
Binary gcpcrypt contains a symmetric encryption test run on real CloudKMS.
|
Binary gcpcrypt contains a symmetric encryption test run on real CloudKMS. |
Click to show internal directories.
Click to hide internal directories.