From the way you are calling $_POST
it looks like you want the raw post data. the $_POST
variable contains an array of posted key=>value pairs. You should use
$encrypted = file_get_contents("php://input");
Reference: http://us.php.net/manual/en/wrappers.php.php