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

Final Project #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/Hackathon-Python.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/ZH.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 0 additions & 27 deletions README.md

This file was deleted.

37 changes: 37 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
RANDOM PASSWORD GENERATOR:
*******************************
1.Idea of our project:
We live in a society where sharing anything on social media platforms is not safe and
any data the users share among themselves/colleagues/friends is easily traceable
and vulnerable by breaches.
So we have tried writing a code which can generate Random password, depending
on the length of password the user wants . The password generated is a combination
of alphabets,numbers and characters.
This is not only beneficial to the user but it also ensures that it not easily hackable.

2.Implementation:
We have implemented the project by using few modules like tkinter,random,string and pyperclip.
We have tried including two classes, Generator and copy password.
Generator helps in generating a random password everytime the user clicks on the 'Generate password' button.
This was accomplished by using the "random" module.
Copy password button helps us to copy the password to the clipboard.

3. Problems faced while implementing the code and how did we overcome it:
We were facing problem in using the random module as it was difficult for us to deal with it. We didn't know the proper syntax
for implementing most of the commands and tried googling and searching for videos on youtube.However ,it was easy to understand
and implement the same after researching on it.
Intially we had around 100 lines of code which basically consisted of random module commands and some extra, unnecessary commands.
We did face difficulty in shortening it and using tricks to make it equally efficient.

4.What did we learn from this project:
This was the first time that we had taken part in the college hackathon. Though tiresome, this was a great idea ,as we have learnt
how to use and implement specific commands. It did give us a lot more confidence to code.We enjoyed learning and researching on
certain topics which we were completely unaware of.

Waiting for many more fun , informative activities and hackathons.
Thank you Zense!

TEAM NAME:ALPHA
TEAM MEMBERS:
Ankrutee Arora
Vishnutha Sheela
Binary file added __pycache__/trial.cpython-39.pyc
Binary file not shown.
Binary file added icon1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
from tkinter import *
import random, string
import pyperclip

root = Tk()
root.geometry("612x408")
root.resizable(0,0)
root.title("PASSWORD GENERATOR")

bg = PhotoImage(file="try.png")

root.iconbitmap('icon1.png')

# Show image using label
label1 = Label(root, image=bg)
label1.place(x=0, y=0)

Label(root, text = 'RANDOM PASSWORD GENERATOR' , font ='arial 20 bold',bg='black',fg='yellow').pack()
Label(root, text ='Zense Hackathon 2021', font ='arial 20 bold').pack(side = BOTTOM)
Label(root,text='Thank you for Using this software',font='arial 25 bold').pack(side=BOTTOM, pady=40)

Label(root,text='Instructions:',font='arial 15 ').place(x=350 ,y=90)
Label(root,text='1.Kindly enter the length of the password ',font='arial 8 ').place(x=350, y=125)
Label(root, text='required and click on the button to get a ',font='arial 8 ').place(x=350, y=150)
Label(root, text='random password' ,font='arial 8 ').place(x=350, y=175)
Label(root, text='2.You can also copy the password, click on' ,font='arial 8 ').place(x=350, y=200)
Label(root, text='copy to clipboard button :)' ,font='arial 8 ').place(x=350, y=225)


pass_label = Label(root, text = 'Password length', font = 'arial 17 bold',bg='black',fg='green').place(x=1 , y=85)
pass_len = IntVar()
length = Spinbox(root, from_ = 8, to_ = 32 , textvariable = pass_len , width = 25).place(x=1,y=125)

pass_str = StringVar()
def Generator():
password = ''
for x in range (0,4):
Password = random.choice(string.ascii_lowercase) + random.choice(string.ascii_uppercase) + random.choice(string.digits) + random.choice(string.punctuation)
for y in range(pass_len.get()):
password = password + random.choice(string.ascii_uppercase + string.ascii_lowercase + string.digits + string.punctuation)
pass_str.set(password)


Button(root, text = "GENERATE PASSWORD" , command = Generator ).place(x=1 , y=150)
Entry(root , textvariable = pass_str).place(x=1 ,y=180)

def Copy_password():
pyperclip.copy(pass_str.get())
Button(root, text = 'COPY TO CLIPBOARD', command = Copy_password).place(x=1,y=205)

root.mainloop()
Binary file added try.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions venv/Include/site/python3.9/pygame/_camera.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
pygame - Python Game Library
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#ifndef _CAMERA_H
#define _CAMERA_H

#include "_pygame.h"
#include "camera.h"

#endif

Loading