Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions installation/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name = "pypi"
[dev-packages]

[packages]
tkinter
re

[requires]
python_version = "3.6"
22 changes: 17 additions & 5 deletions installation/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def installFolder(folder):
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.")
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
Expand Down Expand Up @@ -673,7 +673,7 @@ def decryptHandler(pwd):

# This fucntion adds our signature
def showSignature():
text='This project was made by Aekansh Dixit (First Year Student of PES University, Bengaluru) for the Python Project Assignments of the first semester.'
text='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)).'
return text


Expand Down Expand Up @@ -794,6 +794,8 @@ def exitWindow(*event):
from tkinter import *
import tkinter as tk
from tkinter import scrolledtext as st
from tkinter import messagebox as mb
import re
import f
import m

Expand Down Expand Up @@ -833,12 +835,22 @@ def showWindow():
# nameE.grid(row=1, column=1) # You know what this does now :D
pwordE = Entry(roots, show='*') # Same as above, yet 'show="*"' What this does is replace the text with *, like a password box :D
pwordE.grid(row=5, column=1) # ^^
signupButton = Button(roots, text='Continue', fg="green", command=storeGlobalPwd) # This creates the button with the text 'signup', when you click it, the command 'fssignup' will run. which is the def
signupButton = Button(roots, text='Continue', fg="green", command=strongPass) # This creates the button with the text 'signup', when you click it, the command 'fssignup' will run. which is the def
roots.bind('<Return>',lambda event: strongPass())
signupButton.grid(row=5,column=3, sticky=W)
roots.mainloop() # This just makes the window keep open, we will destroy it soon

#nameE.get()

def strongPass():
pattern = '^(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).*$'
passwd = pwordE.get()
if re.match(pattern,passwd):
storeGlobalPwd()
else:
mb.showwarning("warning","Password should contain at least 1 capital letter, 1 small letter, 1 number and 8 character length")


def storeGlobalPwd():
import ap
import m
Expand All @@ -851,7 +863,7 @@ def storeGlobalPwd():

# This fucntion adds our signature
def showSignature():
text = 'This project was made by Aekansh Dixit (First Year Student of PES University, Bengaluru) for the Python Project Assignments of the first semester.'
text = '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)).'
return text

# This function displays the about
Expand Down Expand Up @@ -879,7 +891,7 @@ def exitWindow(*event):

# Start installing the files
print(
"This project was made by Aekansh Dixit (First Year Student of PES University, Bengaluru) for the Python Project Assignments of the first semester.")
"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)).")
print("Creating directories...")
installFolder("Password Keeper")
installFolder("Password Keeper/bin")
Expand Down
2 changes: 1 addition & 1 deletion raw/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
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.")
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
Expand Down
1 change: 1 addition & 0 deletions raw/res/al.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@


# made with love by Aekansh Dixit (https://github.com/aekanshd/)
# Please credit me in all your future updates, that's all - you're free to use this code commercially, too.
# (c) Aekansh Dixit, 2018 provided under The MIT License (https://opensource.org/licenses/MIT)
Expand Down
2 changes: 1 addition & 1 deletion raw/res/ap.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ def checkPassword(pwd):
return False
except IOError as e:
f.Log(e, "checkPassword")
return False
return False
2 changes: 1 addition & 1 deletion raw/res/d.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ def deleteAccount(id):
accounts.pop(id,None)
writeData(f.DICTtoJSON(accounts))
f.Log("Account deleted: " + id, "deleteAccount")
return True
return True
9 changes: 7 additions & 2 deletions raw/res/f.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ def Log(thrown_error, by):
# Log applications startups
def LogStartUp():
f = open("bin/logs.txt", "a+")
f.write("\n=============================================\n\nApplication Started at "+str(datetime.datetime.now())+ "\n\n")
f.write("\
=============================================\
\
Application Started at "+str(datetime.datetime.now())+ "\
\
")
f.close()


Expand Down Expand Up @@ -86,4 +91,4 @@ def createDataFile():
return True
except IOError as e:
Log(e, "createDataFile")
return False
return False
11 changes: 6 additions & 5 deletions raw/res/m.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@


# made with love by Aekansh Dixit (https://github.com/aekanshd/)
# Please credit me in all your future updates, that's all - you're free to use this code commercially, too.
# (c) Aekansh Dixit, 2018 provided under The MIT License (https://opensource.org/licenses/MIT)
Expand Down Expand Up @@ -190,9 +191,9 @@ def displayAccounts():
deleteBtn = Button(roots, text='Delete Account', command=lambda key=key: deleteEntryHandler(key))
deleteBtn.grid(row=row, column=3, padx=10, sticky=E)
else:
deleteBtn = Button(roots, text='Delete Account', command=lambda key=key: deleteAccount(key))
deleteBtn = Button(roots, text='Delete Account', command=lambda key=key: deleteEntryHandler(key))
deleteBtn.grid(row=row, column=3, padx=10, sticky=E)

row += 1


Expand Down Expand Up @@ -225,7 +226,7 @@ def viewDetails(id):
pwdTL = Label(detailsWindow, text=password)
pwdTL.grid(row=2, column=1, sticky=W)


if not unlocked:
detailsGapL = Label(detailsWindow, text='\n', justify=LEFT)
detailsGapL.grid(row=3, column=0, columnspan=4, sticky=W)
Expand All @@ -246,7 +247,7 @@ def viewDetails(id):
loginPwdBtn.grid(row=6, column=5, columnspan=4, sticky=E)
detailsGapL2 = Label(detailsWindow, text='\n\n')
detailsGapL2.grid(row=7, column=0, columnspan=2, sticky=W)



# This function confirms the deletion password
Expand All @@ -273,7 +274,7 @@ def decryptHandler(pwd):

# This fucntion adds our signature
def showSignature():
text='This project was made by Aekansh Dixit (First Year Student of PES University, Bengaluru) for the Python Project Assignments of the first semester.'
text='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)).'
return text


Expand Down
18 changes: 15 additions & 3 deletions raw/res/s.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from tkinter import *
import tkinter as tk
from tkinter import scrolledtext as st
from tkinter import messagebox as mb
import re
import f
import m

Expand All @@ -23,7 +25,7 @@ def showWindow():
roots.title('Password Keeper') # This renames the title of said window to 'signup'
roots.geometry('500x200')
roots.resizable(0,0)

#this creates a menu
menubar = tk.Menu(roots)
roots.config(menu=menubar)
Expand All @@ -47,12 +49,22 @@ def showWindow():
# nameE.grid(row=1, column=1) # You know what this does now :D
pwordE = Entry(roots, show='*') # Same as above, yet 'show="*"' What this does is replace the text with *, like a password box :D
pwordE.grid(row=5, column=1) # ^^
signupButton = Button(roots, text='Continue', fg="green", command=storeGlobalPwd) # This creates the button with the text 'signup', when you click it, the command 'fssignup' will run. which is the def
signupButton = Button(roots, text='Continue', fg="green", command=strongPass) # This creates the button with the text 'signup', when you click it, the command 'fssignup' will run. which is the def
roots.bind('<Return>',lambda event: strongPass())
signupButton.grid(row=5,column=3, sticky=W)
roots.mainloop() # This just makes the window keep open, we will destroy it soon

#nameE.get()

def strongPass():
pattern = '^(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).*$'
passwd = pwordE.get()
if re.match(pattern,passwd):
storeGlobalPwd()
else:
mb.showwarning("warning","Password should contain at least 1 capital letter, 1 small letter, 1 number and 8 character length")


def storeGlobalPwd():
import ap
import m
Expand All @@ -65,7 +77,7 @@ def storeGlobalPwd():

# This fucntion adds our signature
def showSignature():
text = 'This project was made by Aekansh Dixit (First Year Student of PES University, Bengaluru) for the Python Project Assignments of the first semester.'
text = '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)).'
return text

# This function displays the about
Expand Down