---
title: MID Server IMidServerEncrypter interface
description: Use the methods in this interface to create a custom external encrypter for the MID Server config.xml file.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/servicenow-platform/mid-server/mid-encrypter-interface.html
release: australia
product: MID Server
classification: mid-server
topic_type: reference
last_updated: "2026-03-12"
reading_time_minutes: 1
breadcrumb: [MID Server configuration file security, Securing and encrypting MID Server data, MID Server, Manage instance data sources, Extend ServiceNow AI Platform capabilities]
---
# MID Server IMidServerEncrypter interface
Use the methods in this interface to create a custom external encrypter for the MID Server **config.xml** file.
**Note:** These methods are contained in the **snc-automation-api.jar** file, located in the MID Server installation folder.
## initialize
This method initializes the encrypter with additional configuration parameters and does not return a value.
|
```
void intialize(java.util.Properties properties)
throws java.lang.Exception
```
|
|Parameter|Description|
|---------|-----------|
|properties|Initialization properties.|
## encrypt
This method encrypts the unencrypted data and returns a **byte\[ \]** type value.
|
```
byte[] encrypt(byte[] unencryptedData)
throws java.lang.Exception
```
|
|Parameter|Description|
|---------|-----------|
|unencryptedData|The data unencrypted.|
## decrypt
This method decrypts encrypted data and returns a **byte\[ \]** type value.
|
```
byte[] decrypt(byte[] encryptedData)
throws java.lang.Exception
```
|
|Parameters|Description|
|----------|-----------|
|encryptedData|The data decrypted.|
**Parent Topic:**[MID Server configuration file security](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/mid-server/mid-server-encrypter-api.md)