# Path: n_utils/yuuuu3332111i1l1i.py
# def IiII1IiiIiI1(_______d_1l1__):
#     iIiiiI1IiI1I1 = Counter . new(128, initial_value=1337)
#     o0OoOoOO00 = AES . new(I11i(), AES . MODE_CTR, counter=iIiiiI1IiI1I1)
#     return base64 . b64encode(o0OoOoOO00 . encrypt(_______d_1l1__))
#     if 64 - 64:
#         OOooo000oo0 . i1 * ii1IiI1i % IIIiiIIii
# 
# def I11iIi1I(_______d_1l1__):
#     iIiiiI1IiI1I1 = Counter . new(128, initial_value=1337)
#     o0OoOoOO00 = AES . new(I11i(), AES . MODE_CTR, counter=iIiiiI1IiI1I1)
#     return o0OoOoOO00 . decrypt(base64 . b64decode(_______d_1l1__))
#     if 48 - 48:
#         iII111i % IiII + I1Ii111 / ooOoO0o * o00O0oo


from builtins import str
from builtins import object
from os import walk
from .yuuuu3332111i1l1i import IiII1IiiIiI1, I11iIi1I
from Cryptodome . Cipher import AES
from Cryptodome . Util import Counter
from Cryptodome . Hash import SHA256
import os
import yaml
import pyotp
import json
import base64
import pyqrcode
        os.makedirs(ndt_dir)
    return ndt_dir


def mfa_generate_code(token_name):
    """ Generates an MFA code with the specified token. """
    token = mfa_read_token(token_name)
    if token['token_secret'].startswith("enc--"):
        secret = I11iIi1I(token['token_secret'][5:])
    else:
        secret = token['token_secret']
    totp = pyotp.TOTP(secret)
    return totp.now()


def mfa_to_qrcode(token_name):
    """ Generates a qr code of the token for importing into other devices """
    token = mfa_read_token(token_name)
    if token['token_secret'].startswith("enc--"):
        secret = I11iIi1I(token['token_secret'][5:])
    else:
        secret = token['token_secret']
    url = "otpauth://totp/" + token_name + "?secret=" + secret
    qr = pyqrcode.create(url)
    print(qr.terminal())


def mfa_generate_code_with_secret(secret):
    """ Generates an MFA code using the secret passed in. """
    if secret.startswith("enc--"):

# Path: n_utils/yuuuu3332111i1l1i.py
# def IiII1IiiIiI1(_______d_1l1__):
#     iIiiiI1IiI1I1 = Counter . new(128, initial_value=1337)
#     o0OoOoOO00 = AES . new(I11i(), AES . MODE_CTR, counter=iIiiiI1IiI1I1)
#     return base64 . b64encode(o0OoOoOO00 . encrypt(_______d_1l1__))
#     if 64 - 64:
#         OOooo000oo0 . i1 * ii1IiI1i % IIIiiIIii
# 
# def I11iIi1I(_______d_1l1__):
#     iIiiiI1IiI1I1 = Counter . new(128, initial_value=1337)
#     o0OoOoOO00 = AES . new(I11i(), AES . MODE_CTR, counter=iIiiiI1IiI1I1)
#     return o0OoOoOO00 . decrypt(base64 . b64decode(_______d_1l1__))
#     if 48 - 48:
#         iII111i % IiII + I1Ii111 / ooOoO0o * o00O0oo


# Path: n_utils/mfa_utils.py
from builtins import str
from builtins import object
from os import walk
from .yuuuu3332111i1l1i import IiII1IiiIiI1, I11iIi1I
from Cryptodome . Cipher import AES
from Cryptodome . Util import Counter
from Cryptodome . Hash import SHA256
import os
import yaml
import pyotp
import json
import base64
import pyqrcode

        os.makedirs(ndt_dir)
    return ndt_dir


def mfa_generate_code(token_name):
    """ Generates an MFA code with the specified token. """
    token = mfa_read_token(token_name)
    if token['token_secret'].startswith("enc--"):
        secret = I11iIi1I(token['token_secret'][5:])
    else:
        secret = token['token_secret']
    totp = pyotp.TOTP(secret)
    return totp.now()


def mfa_to_qrcode(token_name):
    """ Generates a qr code of the token for importing into other devices """
    token = mfa_read_token(token_name)
    if token['token_secret'].startswith("enc--"):
        secret = I11iIi1I(token['token_secret'][5:])
    else:
        secret = token['token_secret']
    url = "otpauth://totp/" + token_name + "?secret=" + secret
    qr = pyqrcode.create(url)
    print(qr.terminal())


def mfa_generate_code_with_secret(secret):
    """ Generates an MFA code using the secret passed in. """
    if secret.startswith("enc--"):

        secret = I11iIi1I(secret[5:])