prologin.timeauth module¶
Tiny utilities to authenticate connections using a pre-shared secret and time synchronisation between endpoints.
-
prologin.timeauth.check_token(token, secret, message=None)¶ Return if token is valid according to secret and current time.
-
prologin.timeauth.generate_token(secret, message=None)¶ Generate a token given some secret.
-
prologin.timeauth.get_hmac(secret, message)¶ Return a HMAC of message for some secret.