---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/servicenow-platform

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# MID Server IMidServerEncrypter interface

# MID Server IMidServerEncrypter interface {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

Use the methods in this interface to create a custom external encrypter for the MID
Server config.xml file.
Nota:  
These methods are contained in the snc-automation-api.jar file, located in the MID Server installation folder.

## initialize {#mid-encrypter-interface__section_d2c_5dp_jbb}

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 |
[Tabela 1. Example]

{#mid-encrypter-interface__table_nsq_g2p_jbb} {#mid-encrypter-interface__table_xgk_l2p_jbb__entry__2}

| Parameter | Description |
|-|-|
| properties | Initialization properties. |
[Tabela 2. Parameters]

{#mid-encrypter-interface__table_xgk_l2p_jbb}

|-|
| `java.lang.Exception` |
[Tabela 3. Exception]

{#mid-encrypter-interface__table_zfw_n2p_jbb}

## encrypt {#mid-encrypter-interface__section_erp_tdp_jbb}

This method encrypts the unencrypted data and returns a byte\[ \] type value.

|-|
| byte[] encrypt(byte[] unencryptedData) throws java.lang.Exception |
[Tabela 4. Example]

{#mid-encrypter-interface__table_sp1_dfp_jbb} {#mid-encrypter-interface__table_lps_gfp_jbb__entry__2}

| Parameter | Description |
|-|-|
| unencryptedData | The data unencrypted. |
[Tabela 5. Parameters]

{#mid-encrypter-interface__table_lps_gfp_jbb}

|-|
| Encrypted data |
[Tabela 6. Returns]

{#mid-encrypter-interface__table_xn1_3fp_jbb}

|-|
| `java.lang.Exception` |
[Tabela 7. Exception]

{#mid-encrypter-interface__table_kjt_3fp_jbb}

## decrypt {#mid-encrypter-interface__section_esw_sdp_jbb}

This method decrypts encrypted data and returns a byte\[ \] type value.

|-|
| byte[] decrypt(byte[] encryptedData) throws java.lang.Exception |
[Tabela 8. Example]

{#mid-encrypter-interface__table_kn1_5fp_jbb} {#mid-encrypter-interface__table_ghz_vfp_jbb__entry__2}

| Parameters | Description |
|-|-|
| encryptedData | The data decrypted. |
[Tabela 9. Parameters]

{#mid-encrypter-interface__table_ghz_vfp_jbb}

|-|
| Decrypted data. |
[Tabela 10. Returns]

{#mid-encrypter-interface__table_k3s_bgp_jbb}

|-|
| `java.lang.Exception` |
[Tabela 11. Exception]

{#mid-encrypter-interface__table_w5r_2gp_jbb}

