Nevermind, used the internet to tell me. :) https://docs.python.org/3.4/library/hmac.html#hmac.compare_digest