Added two function to class GnuPG