Remmina - The GTK+ Remote Desktop Client  v1.4.33
Remmina is a remote desktop client written in GTK+, aiming to be useful for system administrators and travellers, who need to work with lots of remote computers in front of either large monitors or tiny netbooks. Remmina supports multiple network protocols in an integrated and consistent user interface. Currently RDP, VNC, NX, XDMCP and SSH are supported.
Secret-Example.md
Go to the documentation of this file.
1 This type of plugins handles the safe storage of passwords so the user doesn't have to enter them again.
2 
3 ```python
4 import remmina
5 
6 class PluginSecret:
7  def __init__(self):
8  self.name = "Python Secret Plugin"
9  self.pref_label = "Preference Label"
10  self.type = "secret"
11  self.description = "A neat secret plugin"
12  self.version = "1.0"
13  # A password storage that stores passwords in memory (totally useless of course...).
14  self.keys = {}
15 
16  def init(self):
17  return True
18 
19  def is_service_available(self):
20  return True
21 
22  def store_password(self, file, key, pwd):
23  self.keys[key] = pwd
24 
25  def get_password(self, file, key):
26  return self.keys[key] if key in self.keys else ""
27 
28  def delete_password(self, file, key):
29  self.keys[key] = None
30 
31 mySecretPlugin = PluginSecret()
32 remmina.register_plugin(mySecretPlugin)
33 
34 ```