Factory pattern
Adapt PEAR Crypt_GPG to Magento style