Skip to main content

Test RC4 encryption

Verify your RC4 encryption setup for the Web Analytics API.

Updated over 2 weeks ago

You can encrypt and decrypt sample data to confirm that your shared secret key is working correctly.


Before you start

Things you need to know:


Access the RC4 testing tool

To access the RC4 testing interface:

  1. Expand the User menu.

  2. Go to Settings > RC4 encryption.

  3. If needed, select Change the encryption key to update your shared secret.

Test encryption of plain text

To test that your shared secret correctly encrypts plain text:

  1. In the Plain text box, enter text you want to encrypt (such as user IDs or event data).

  2. Select Encrypt.

  3. The encrypted result appears in the Encrypted, base64 encoded text box.

Test decryption of encoded text

To test that your shared secret correctly decrypts encoded text:

  1. In the Encrypted, base64 encoded text box, enter encrypted text.

  2. Select Decrypt.

  3. The decrypted result appears in the Decrypted text box.

  4. Verify that the decrypted text matches what you expected.

How to verify successful testing

Your RC4 encryption setup is working correctly when:

  • Text encrypted with your shared secret produces valid base64-encoded output.

  • The encrypted text can be successfully decrypted back to the original input.

  • The encryption and decryption process is consistent each time you test it.

Did this answer your question?