Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback #1

Open
wants to merge 7 commits into
base: feedback
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Password_Manager_0.1
  • Loading branch information
JohnsonZhangBDSC committed Mar 9, 2021
commit 1c0c6bfc63cda90523599fc138a09f3d0484458a
2 changes: 1 addition & 1 deletion .replit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
language = "python3"
run = "python password_manager.py"
run = "python Password_Manager_0.3.py"
2 changes: 2 additions & 0 deletions 1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import os
os.system("start cmd")
80 changes: 80 additions & 0 deletions Cooler_Version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#Created by Johnson Zhang
#24/02/2021
#Ver. 0.1

import os.path

def menu():
print("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$")
print("Please choose your option:")
choice = int(input("1. Add new Password details\n2. View password list\n3. Exit the program\n"))
if choice == 1:
write_txt()
elif choice == 2:
read()
elif choice == 3:
exit()
else:
print("Please enter the right number !!")
menu()

def checktext():
if os.path.exists("Saved_Password.txt"):
pass
else:
file = open("Saved_Password.txt", 'w')
file.close()

def write_txt():
file = open("Saved_Password.txt", 'a')

print()
print()

usern = input("Please enter the username to access the website: ")

passw = input("Please enter the password here: ")

web = input("Please enter the website address: ")

print()
print()

usrnm = "UserName: " + usern + "\n"
pwd = "Password: " + passw + "\n"
webs = "Website: " + web + "\n"

file.write("##############################\n")
file.write(usrnm)
file.write(pwd)
file.write(webs)
file.write("\n##############################\n")
file.write("\n")
file.close
choice()

def choice():
choice = int(input("1. Do you wish to add more Passwords?\n2. View the password list\n3. Head back to the main menu\n"))
if choice == 1:
write_txt()
elif choice == 2:
read()
elif choice == 3:
menu()
else:
print("Please enter a valid number")
choice()

def read():
file = open('Saved_Password.txt', 'r')
cont = file.read()
print(cont)
file.close()
choice()

checktext()
print("########################################")
print("Welcome to Password_Manager_0.1")
print("You will now be direct to the Main menu")
print("########################################")
menu()
1 change: 1 addition & 0 deletions Cryptography/Cryptography.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pip3 install cryptography
68 changes: 68 additions & 0 deletions Password_Manager.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#PassWord Manager ver 0.1
#Created by Johnson Zhang
#First verison
import base64
name = ""
age = ""

passl = []
userl = ["Johnson", "BDSC"]

def req (name, age):
print("Hello", name.capitalize())
while True:
try:
if age < 13:
print("You are below the restricted age")
print("The program will now exit")
exit()

elif age >= 13:
granted()

except ValueError:
print("Enter a valid number")

def granted():
choice = int(input("Enter your choice:\n1. Add Password\n2. View Password\n3. Exit\n"))
while True:
try:
if choice == 1:
add_pass()
elif choice == 2:
view_pass()
elif choice == 3:
break

except ValueError:
print("Please enter a vaild number")

def add_pass():
add = input("Whats the Password you want to add: ")
tname = input("Whats the website of this password: ".title())
passl.append(add)
passl.append(tname)
print("Successful!!!")
check = int(input("Would you like to check your password. Yes(1) No(2): "))
if check == 1:
print(passl)
print("You will now retuen back to main menu")
req(name,age)
elif check == 2:
req(name, age)

def view_pass():
for list in passl:
print(list)
print("You will be send back to the main menu")
req(name,age)

print("Welcome to the Password_manager!!")
print("You must be over 13 to access this program")

name = input("What is your name: ")
age = float(input("How old are you: "))
req(name,age)



68 changes: 68 additions & 0 deletions Password_Manager_0.2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#Password_Manager
#Ver 0.2
#Created by Johnson Zhang
#Fixed list, put password and website in different lines, seperate password aparts
name = ""
age = ""

passl = []
userl = ["Johnson", "BDSC"]

def req (name, age):
print("Hello", name.capitalize())
while True:
try:
if age < 13:
print("You are below the restricted age")
print("The program will now exit")
exit()

elif age >= 13:
granted()

except ValueError:
print("Enter a valid number")

def granted():
choice = int(input("Enter your choice:\n1. Add Password\n2. View Password\n3. Exit\n"))
while True:
try:
if choice == 1:
add_pass()
elif choice == 2:
view_pass()
elif choice == 3:
exit()

except ValueError:
print("Please enter a vaild number")

def add_pass():
add = input("Whats the Password you want to add: ")
tname = input("Whats the website of this password: ".title())
passl.append("##################")
passl.append("UserName: " + add)
passl.append("Website: " + tname)
passl.append("##################")
print("Successful!!!")
check = int(input("Would you like to check your password. Yes(1) No(2): "))
if check == 1:
for cool_pass in passl:
print(cool_pass)
print("You will now retuen back to main menu")
req(name,age)
elif check == 2:
req(name, age)

def view_pass():
for list in passl:
print(list)
print("You will be send back to the main menu")
req(name,age)

print("Welcome to the Password_manager!!")
print("You must be over 13 to access this program")

name = input("What is your name: ")
age = float(input("How old are you: "))
req(name,age)
73 changes: 73 additions & 0 deletions Password_Manager_0.3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#Password_Manager_0.3
#Ver_0.3
#Created by Johnson Zhang
#Add Username Function
name = ""
age = ""

passl = []
userl = ["Johnson", "BDSC"]

def req (name, age):
print("Hello", name.capitalize())
while True:
try:
if age < 13:
print("You are below the restricted age")
print("The program will now exit")
exit()

elif age >= 13:
granted()

else:
print("Enter A Valid Number!")

except ValueError:
print("Enter A Valid Number")

def granted():
choice = int(input("Enter your choice:\n1. Add Password\n2. View Password\n3. Exit\n"))
while True:
try:
if choice == 1:
add_pass()
elif choice == 2:
view_pass()
elif choice == 3:
exit()

except ValueError:
print("Please enter a vaild number")

def add_pass():
uname = input("What is the username: ")
add = input("Whats the Password you want to add: ")
tname = input("Whats the website of this password: ".title())
passl.append("##################")
passl.append("UserName: " + uname)
passl.append("Password: " + add)
passl.append("Website: " + tname)
passl.append("##################")
print("Successful!!!")
check = int(input("Would you like to check your password. Yes(1) No(2): "))
if check == 1:
for cool_pass in passl:
print(cool_pass)
print("You will now retuen back to main menu")
req(name,age)
elif check == 2:
req(name, age)

def view_pass():
for list in passl:
print(list)
print("You will be send back to the main menu")
req(name,age)

print("Welcome to the Password_manager!!")
print("You must be over 13 to access this program")

name = input("What is your name: ")
age = int(float(input("How old are you: ")))
req(name,age)
7 changes: 7 additions & 0 deletions Saved_Password.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
##############################
UserName: 123
Password: 123
Website: 000

##############################

Loading