This snippet of Java code will encrypt the variables and values string into the required format.

You need to generate the string and pass it into this function.
Example, pass it the string:

variable1=value1;variable2=value2;variable3=value3

It will return:

9af21fffc0fa29f990913ce8f56160e354991f71d25d20ef0d4990b42d72607e111bf936012ae2cf30e3c5fd974c3f7b6ba07db6eb07498571ea8473c81d3945

Then put this in the CDN URL:

http://cdn.yoursite.com/9af21fffc0fa29f990913ce8f56160e354991f71d25d20ef0d4990b42d72607e111bf936012ae2cf30e3c5fd974c3f7b6ba07db6eb07498571ea8473c81d3945/file.ext

Or for Real Time Zone

rtmp|rtsp://cdn.yoursite.com/live/zone_stream_9af21fffc0fa29f990913ce8f56160e354991f71d25d20ef0d4990b42d72607e111bf936012ae2cf30e3c5fd974c3f7b6ba07db6eb07498571ea8473c81d3945

The Code

import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.security.*;

public class EncryptedLinksClass {

    public static void main(String[] args) {
        try {
            System.out.println(encrypt("variable1=value1;variable2=value2;variable3=value3"));
        } catch (Exception e) {
            System.out.println("error: " + e.toString());
        }
    }

    public static String encrypt(String plaintext)
            throws NoSuchAlgorithmException, NoSuchPaddingException,
            InvalidKeyException, InvalidAlgorithmParameterException,
            IllegalBlockSizeException, BadPaddingException {

        Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
        MessageDigest md = MessageDigest.getInstance("MD5");
        String key = "YourKeyGoesHere";

        byte[] key_md5 = md.digest(key.getBytes());
        SecretKeySpec keyspec = new SecretKeySpec(key_md5, "AES");

        byte[] iv = joinByteArray(key_md5, key.getBytes());
        byte[] iv_md5 = md.digest(iv);
        IvParameterSpec ivspec = new IvParameterSpec(iv_md5);

        cipher.init(Cipher.ENCRYPT_MODE, keyspec, ivspec);
        byte[] encrypted = cipher.doFinal(plaintext.getBytes());
        return bytesToHex(encrypted);
    }

    public static String bytesToHex(byte[] bytes) {
        StringBuilder builder = new StringBuilder();
        for (byte b : bytes) {
            builder.append(String.format("%02x", b));
        }
        return builder.toString();
    }

    public static byte[] joinByteArray(byte[] a, byte[] b) {
        int aLen = a.length;
        int bLen = b.length;
        byte[] c = new byte[aLen + bLen];
        System.arraycopy(a, 0, c, 0, aLen);
        System.arraycopy(b, 0, c, aLen, bLen);
        return c;
    }

}