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:
You must have a shared secret key.
Learn how to set up your shared secret in Set up a shared secret.
To learn about the Web Analytics API, see Web Analytics.
Access the RC4 testing tool
To access the RC4 testing interface:
Expand the User menu.
Go to Settings > RC4 encryption.
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:
In the Plain text box, enter text you want to encrypt (such as user IDs or event data).
Select Encrypt.
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:
In the Encrypted, base64 encoded text box, enter encrypted text.
Select Decrypt.
The decrypted result appears in the Decrypted text box.
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.