For basic encrypt/decrypt functions you can use the [man]mcrypt[/man] library.
For PGP/GPG, I don't know of any, but I haven't looked anywhere other than the function listing, pear.php.net and pecl.php.net (where some other cryptographic classes are located).