You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: kms.go
    path of file: ./repos/bank-vaults/pkg/kv/alibabakms
    
    the code of the file until where you have to start completion: // Copyright Â© 2018 Banzai Cloud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl
    
func (a *alibabaKMS) encrypt(plainText []byte) ([]byte, error) {
	request := kms.CreateEncryptRequest()
	request.KeyId = a.kmsID
	request.Plaintext = string(plainText)
	response, err := a.kmsClient.Encrypt(request)
	if err != nil {
		return nil, errors.WrapIf(err, "failed to encrypt with KMS client")
	}

	return []byte(response.CiphertextBlob), nil
}