Пример #1
0
def storeGlobalPwd():
    import ap
    import m
    ap.genSalt()
    pwd = ap.encrypt(pwordE.get())  # encrypt the given password
    ap.storeGlobal(pwd)
    f.createDataFile()
    roots.destroy()  # This will destroy the signup window. :)
    m.showWindow()
Пример #2
0
# This is the main file for the Password Keeper Program.

# Import main modules
import sys

sys.path.insert(0, 'res')
sys.path.insert(0, 'bin')

# Import app modules
import f

#Log the startup
f.LogStartUp()

# Check if the modules work or not.
print(
    "Application started. This project was made by Aekansh Dixit (First Year Student of PES University, Bengaluru) for the Python Project Assignments of the first semester and Collaborated by Simranjot Sandhu ( HEC, Jagadhri))."
)

# 0n the launch, we will check if the application was already launched or not by viewing our data fileset.
# TODO: Install the res folder along with the files, and empty bin folder

if (not f.checkFileExists("bin/gp.txt")):
    f.Log("This is the first launch.", "mainFile")
    import s
    s.showWindow()
else:
    f.Log("Data found", "mainFile")
    import m
    m.showWindow()