Exemple #1
0
 def get_session_key(self, ident):
   ident_b64 = util.b64_encode(ident)
   try:
     return SessionKey.load(ident_b64)
   except Exception:
     pass
   return
Exemple #2
0
 def generate_session_key(self, ident):
   ident_b64 = util.b64_encode(ident)
   return SessionKey.generate(ident_b64)