---
sourceDocument: Brazil Build workflows
sourceDocumentLink: https://www.servicenow.com/docs/r/build-workflows

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build workflows

ft:clusterId :

    - crworkflow

bundleId :

    - crworkflow

workflow :

    - Creator


---

# Password (2 Way Encrypted) design considerations

# Password (2 Way Encrypted) design considerations {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Password (2 Way Encrypted) design considerations

This guide explains how to store and manage password data encrypted in a way that allows decryption within ServiceNow workflows.
Designed for the Brazil release version, it outlines the necessary configurations and restrictions for using Password (2 Way Encrypted) data variables effectively in Workflow Studio and Flow Designer.
Show full answer Show less  

## Basic and Advanced Configuration Options

* **Label:** User-friendly text to identify the password variable in Workflow Studio.
* **Name:** System-generated alphanumeric identifier used in scripts.
* **Type:** Specifies the data type stored, here, Password (2 Way Encrypted).
* **Mandatory:** Defines whether the variable must have a value.
* **Hint:** Provides configuration guidance for flow or action designers.
* **Default value:** Used when no value is provided by the designer.

## Key Usage Guidelines

* Values for Password (2 Way Encrypted) variables must be assigned only by selecting existing Password2 data pills; manual entry is not supported.
* Workflow Studio enforces restrictions by warning users when invalid data pill types are selected or when Password2 data pills are assigned to incompatible field types.
* Supported field types for Password2 data pills include email body fields, HTML fields, password fields, PowerShell input variables, REST and SOAP fields such as headers, payloads, query parameters, and form-encoded values.
* Password (2 Way Encrypted) variables cannot be used as conditions in flows or actions.
* Flow Designer validates usage on save, publish, or test operations, preventing execution if invalid configurations are found.

## Encryption and Access Control

Only users with appropriate encryption module access can decrypt and view Password2 variable contents. Configuration of encryption algorithms and role-based access controls must be performed as per the Password2 encryption with KMF guidelines to ensure secure handling and restricted visibility of encrypted password data.  
Store encrypted password data that can be decrypted.

## Basic options {#password-2-data__section_kxv_fkc_glb}

{#password-2-data__table-basic-data-options__entry__2}{#password-2-data__basic-data-label}{#password-2-data__basic-data-name}{#password-2-data__basic-data-type}{#password-2-data__basic-data-mandatory}

| Option | Description |
|-|-|
| Label | Displays the label used to identify the data variable in the Workflow Studio interface. The label can consist of any text. |
| Name | Displays the name used to identify the data variable in script calls. The name can only consist of alphanumeric and underscore characters. The system automatically converts the label into a valid name by removing or replacing any special characters. |
| Type | Indicates the type of data stored by the data variable. |
| Mandatory | Indicates whether the data variable must contain a value when configured in an action. |
[ ]

{#password-2-data__table-basic-data-options}

## Advanced options {#password-2-data__section_rd2_gkc_glb}

{#password-2-data__table_oyw_4pg_dlb__entry__2}{#password-2-data__row-advanced-data-hint}{#password-2-data__row-advanced-options-default-value}

| Option | Description |
|-|-|
| Hint | Provides guidance to flow or action designers on how to configure the data. |
| Default value | Specifies the value used when a flow or action designer does not provide a value. |
[ ]

{#password-2-data__table_oyw_4pg_dlb}

## General guidelines {#password-2-data__id_v3k_s5b_ptb}

Follow these general guidelines when designing flows containing Password (2 Way Encrypted) data.

Assign values using existing Password (2 Way Encrypted) data pills.
:   You can only assign a value to a password2 variable by selecting an existing password2 data pill. Selecting values from other field types is not supported. Workflow Studio presents a warning message when invalid data pill types are selected.

    {#password-2-data__fig_emz_qjp_v2b}

    Note:  
    You cannot manually enter Password (2 Way Encrypted) values.

Use Password (2 Way Encrypted) variables only for valid field types
:   Workflow Studio prevents selecting Password2 data pills as the value for invalid field types. The system presents a warning message when the field is an incompatible type.

    {#password-2-data__fig_ybk_skp_v2b}

    Workflow Studio only allows Password2 data pills to be dragged into the following field types.

    * Email body fields
    * HTML fields
    * Password 2 Fields
    * PowerShell Input Variables
    * REST fields
      * Variables
      * REST payload body
      * Query parameters
      * Headers
      * REST multi-part form values
      * Form URL-encoded values
      {#password-2-data__ul_d2s_c2f_ntb}
    * SOAP fields
      * Headers
      * Envelope
      {#password-2-data__ul_qyf_x1p_2fb}
    {#password-2-data__ul_idm_vqk_v2b}

    Note:  
    you cannot use Password (2 Way Encrypted) variables as conditions

    Flow Designer performs a validation check when a user saves, publishes, or tests actions and flows. This check shows that an alert for any data pills dropped in restricted field types and prevents the action or flow
    from executing. Update the action or flow to remove the invalid data pill and then retry the action.

Set up encryption modules for decryption
:   Only users with a valid encryption module access can decrypt and view the contents of password2 variables. To specify the encryption algorithm and which roles can access encrypted data, see [Password2 encryption with KMF](https://www.servicenow.com/docs/access?context=password-2way-encrypted-fields&version=brazil&pubname=brazil-platform-security&ft:locale=en-US) .

