---
url: /flow/guide/scripting-reference/functions/encryption/rc4decrypt.md
---

# RC4Decrypt

## Declaration

`Function RC4Decrypt( Input : string) : String`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := RC4Decrypt('jBvnQpEkdg=='); //value will be 'cameron'
```

## Description

Decrypts the RC4 value. The key used for decryption is a static key. This should be used to decrypt a value encrypted with [RC4Encrypt](/flow/guide/scripting-reference/functions/encryption/rc4encrypt).

For a secure encryption using a unique Key refer to [RC4EncryptKey](/flow/guide/scripting-reference/functions/encryption/rc4encryptkey) function.
