Initial commit of  the decrypt function for PHP