Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ENCRYPTION (0.14 sec)

  1. cmd/admin-handlers.go

    	// 1. Generate a new key using the KMS.
    	key, err := GlobalKMS.GenerateKey(context.Background(), "", kmsContext)
    	if err != nil {
    		kmsStat.Encrypt = fmt.Sprintf("Encryption failed: %v", err)
    	} else {
    		kmsStat.Encrypt = "success"
    	}
    
    	// 2. Verify that we can indeed decrypt the (encrypted) key
    	decryptedKey, err := GlobalKMS.DecryptKey(key.KeyID, key.Ciphertext, kmsContext)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
Back to top