Exemplo n.º 1
0
 def __init__(self, host, port, passphrase):
     self.host = "{host}:{port}".format(host=host, port=port)
     self.passphrase = passphrase
     self.gpg, self.fp = util.get_or_gen_gpg(passphrase, config.CLIENT_GPG_HOME)
     self.server_fp = config.SERVER_KEY_FP
     self.secret = util.generate_random_string()
     self.session = False
Exemplo n.º 2
0
 def __init__(self, host, port, passphrase):
     self.host = "{host}:{port}".format(host=host, port=port)
     self.passphrase = passphrase
     self.gpg, self.fp = util.get_or_gen_gpg(passphrase,
                                             config.CLIENT_GPG_HOME)
     self.server_fp = config.SERVER_KEY_FP
     self.secret = util.generate_random_string()
     self.session = False
Exemplo n.º 3
0
def register_self_gpg(*arg, **kwargs):
    app.gpg, app.fp = util.get_or_gen_gpg(passphrase, config.SERVER_GPG_HOME)