Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/c/r/cryptobot-email-HEAD/bot.py   cryptobot-email(Download)
            subject = 'CryptoBot response'
 
        from_email = '{0} <{1}>'.format(config.PGP_NAME, config.PGP_EMAIL)
 
        # start the email
        if not self.message.encrypted_right:
            pubkey = str(self._gpg.export_keys(self.fingerprint))
            pubkey_filename = '{0} {1} (0x{2}) pub.asc'.format(config.PGP_NAME, config.PGP_EMAIL, str(self.fingerprint)[:-8])
 
            pubkey_part = MIMEBase('application', 'pgp-keys')
    gpg = GnuPG()
 
    expected_uid = '{0} <{1}>'.format(config.PGP_NAME, config.PGP_EMAIL)
 
    fingerprint = gpg.has_secret_key_with_uid(expected_uid)
    if not fingerprint:
        if allow_new_key:
            logging.info('Generating new OpenPGP keypair with user ID: {0}'.format(expected_uid))
            fingerprint = gpg.gen_key(config.PGP_NAME, config.PGP_EMAIL)