added function gpgenc()