(self, key)
Generate the shared key
Generate the shared key
Generate the shared key
def generate_key(self, key):
        """Generate the shared key"""
        self.shared_secret = self.generate_secret(self.private, key)
        hsh = sha256()
        hsh.update(str(self.shared_secret))
        self.shared_key = hsh.digest()
def generate_key ( self , key ) : self . shared_secret = self . generate_secret ( self . private , key ) hsh = sha256 ( ) hsh . update ( str ( self . shared_secret ) ) self . shared_key = hsh . digest ( )