<?php include('RC4.php'); $string = "I am a secret text"; $key = "crypt_key"; $crypt = RC4::encrypt($key, $string); $dcrypt = RC4::decrypt($key, $crypt); echo " String: $string Key: $key Encripted Data: $crypt; Success: " . ($string == $dcrypt ? 'true' : 'false') . " "; ?>