def encrypt_with_http_info(vault_base_url, key_name, key_version, algorithm, value, custom_headers:nil)
      encrypt_async(vault_base_url, key_name, key_version, algorithm, value, custom_headers:custom_headers).value!
    end
def encrypt_with_http_info(vault_base_url, key_name, key_version, algorithm, value, custom_headers:nil)
      encrypt_async(vault_base_url, key_name, key_version, algorithm, value, custom_headers:custom_headers).value!
    end
Encrypts an arbitrary sequence of bytes using an encryption key that is
 stored in a key vault.

 The ENCRYPT operation encrypts an arbitrary sequence of bytes using an
 encryption key that is stored in Azure Key Vault. Note that the ENCRYPT
 operation only supports a single block of data, the size of which is
 dependent on the target key and the encryption algorithm to be used. The
 ENCRYPT operation is only strictly necessary for symmetric keys stored in
 Azure Key Vault since protection with an asymmetric key can be performed
 using public portion of the key. This operation is supported for asymmetric
 keys as a convenience for callers that have a key-reference but do not have
 access to the public key material. This operation requires the keys/encypt
 permission.

 @param vault_base_url [String] The vault name, for example
 https://myvault.vault.azure.net.
 @param key_name [String] The name of the key.
 @param key_version [String] The version of the key.
 @param algorithm [JsonWebKeyEncryptionAlgorithm] algorithm identifier.
 Possible values include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5'
 @param value
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [MsRestAzure::AzureOperationResponse] HTTP response information.