Jump to content

User:Ronhjones/2FA

From Wikipedia, the free encyclopedia

This is the current revision of this page, as edited by Amorymeltzer (talk | contribs) at 16:23, 26 November 2022 (Replace deprecated source tag, see talk). The present address (URL) is a permanent link to this version.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

NB:Of course the real codes are NOT 0000 0000 0000 0000

import onetimepass as otp
import warnings

def main():
    my_secret = '0000 0000 0000 0000'
    my_token = otp.get_totp(my_secret)
    print "Ronhjones", my_token
    my_secret = '0000 0000 0000 0000'
    my_token = otp.get_totp(my_secret)
    print "RonBot", my_token

        
if __name__ == "__main__":
    with warnings.catch_warnings():
        warnings.simplefilter("ignore", FutureWarning)
        main()