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

# RC4Encrypt

## Declaration

`Function RC4Encrypt( Input : string) : String`

### Example

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

## Description

Encrypts the value using RC4. The key used for encryption is a static key. This should really only be used to obscure a value as any one with a copy of Flow will be able to decrypt it.

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