---
title: "decrypt"
canonical: "https://support.appfire.com/space/PSJ/15489017/decrypt"
format: markdown
---
> Macro (aura-html)


 


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | decrypt(textToDecrypt, cipherKey) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Decrypts text with AES Decryption using a 16, 32, 64, or 128 bit cipher.

Decrypts text with AES Decryption using a 16, 32, 64, or 128 bit cipher. This is useful when retrieving password stored in [ Persistent variables](https://appfire.atlassian.net/wiki/pages/createpage.action?spaceKey=psj&title=%20Persistent%20variables&linkCreation=true&fromPageId=15489017).

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| textToDecrypt | String | Yes | Text to decrypt |
| cipherKey | String | Yes | Secret cipher key text used for encryption and decryption. Must be 16, 32, 64, or 128 characters in length. |

## Return Type

**String**

## Example

```javascript
return decrypt(""&#184;&#248;b!v&#8222;&#246;&#201;&#217;&#39;&#228;W1&#8225;", "secretKeyPhrase7");
```

Returns "adminPassword"

## See also

> Macro (contentbylabel)