This script is currently under re-construction, since I've written the PHP-GPG functionality into stand-alone scripts. Please check out my PHP-GPG functions, if you are after this type of functionality!