Пример #1
0
 def getData(self, username, signature, key):
     """ Get a block of data from user
     Requires signature of key
     Returns data if success, False otherwise
     """
     if not checkSignature(username, signature, key):
         return False
     return Isis.getKey("data/%s/%s" % (username, key))
Пример #2
0
 def poll(self, username):
     """ Get file list of user
     Returns filelist (encrypted) if success, False otherwise
     """
     return Isis.getKey("files/%s" % username)
Пример #3
0
 def getKey(self, username):
     """ Get the (encrypted) private key of the user
     Returns privatekey
     """
     return Isis.getKey("keys/%s" % username)