Password Generator - Mini Project 3
Password Generator - Mini Project 3
of
Bachelor of Technology
In
COMPUTER SCIENCE
By
Signature Signature
Date: 11/12/24
DECLARATION
We hereby declare that this submission of our own work
and that, to the best of our knowledge and belief, it contains
no material previously published or written by another
person nor material which to a substantial extent has been
accepted for the award of any other degree or diploma or the
university or other institute of higher learning, except where
due acknowledgement has been made in the text.
Signature: Signature:
Signature:
Date: 11/12/24
Team Acknowledgement
We, the team behind this college website project, would like to
extend our heartfelt thanks and acknowledge the contributions of
several individuals and groups who made this project possible.
Project Team:
This project would not have been possible without the collective
efforts of the team, guidance from our mentor, and the support of
the college community. We hope this website serves as a
valuable tool and resource for students, faculty, and staff alike.
Purpose of the Password Generator
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN
3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog==" crossorigin="anonymous" />
<title>Password Generator</title>
</head>
<body>
<div class="container">
<h2>Password Generator</h2>
<div class="result-container">
<span id="result"></span>
</button>
</div>
<div class="settings">
<div class="setting">
<label>Password Length</label>
</div>
<div class="setting">
</div>
<div class="setting">
</div>
<div class="setting">
<label>Include numbers</label>
</div>
<div class="setting">
<label>Include symbols</label>
</div>
</div>
</button>
</div>
<script src="script.js"></script>
</body>
</html>
CSS CODE
@import url('https://fonts.googleapis.com/css?family=Muli&display=swap');
*{
box-sizing: border-box;
body {
background-color: #3b3b98;
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
overflow: hidden;
padding: 10px;
margin: 0;
}
h2 {
text-align: center;
.container {
background-color: #23235b;
padding: 20px;
width: 350px;
max-width: 100%;
.result-container {
display: flex;
justify-content: flex-start;
align-items: center;
position: relative;
font-size: 18px;
letter-spacing: 1px;
height: 50px;
width: 100%;
.result-container #result {
word-wrap: break-word;
overflow-y: scroll;
height: 100%;
#result::-webkit-scrollbar {
width: 1rem;
.result-container .btn {
position: absolute;
top: 5px;
right: 5px;
width: 40px;
height: 40px;
font-size: 20px;
}
.btn {
border: none;
background-color: #3b3b98;
color: #fff;
font-size: 16px;
cursor: pointer;
.btn-large {
display: block;
width: 100%;
.setting {
display: flex;
justify-content: space-between;
align-items: center;
margin: 15px 0;
}
JAVASCRIPT CODE
const randomFunc = {
lower: getRandomLower,
upper: getRandomUpper,
number: getRandomNumber,
symbol: getRandomSymbol
clipboardEl.addEventListener('click', () => {
if (!password) {
return;
}
navigator.clipboard.writeText(password);
})
generateEl.addEventListener('click', () => {
})
if(typesCount === 0) {
return ''
}
for(let i = 0; i < length; i += typesCount) {
typesArr.forEach(type => {
generatedPassword += randomFunc[funcName]()
})
return finalPassword
function getRandomLower() {
function getRandomUpper() {
function getRandomNumber() {
function getRandomSymbol() {
}
OUTPUT
CONCLUSION