Password generator in Python!
HTML-код
- Опубликовано: 24 сен 2024
- ►Checkout my English channel here: / @programmingwithharry
►Instagram: codewithharry
python, C, C++, Java, JavaScript and Other Cheetsheets [++]:
Playlist: • Coding CheatSheets 🧾 b...
►Learn in One Video[++]:
Python[15 Hr]: • Python Tutorial For Be...
Python Advance[3.5 Hr]: • Python Programming Cou...
Python[1 Hr]: • Learn Python In Hindi ...
Python[2 Hr]: • Python Tutorial In Hin...
Python[15 Min]: • 15 Minute Python Tutor...
JavaScript[1 Hr]: • JavaScript Tutorial
C[1.3 Hr]- • C Programming Tutorial...
php[1 Hr]: • Learn Php In One Video...
php[2.3 Hr]: • Php Tutorial for Begin...
php[Project]- • Login And Registration...
HTML[30 Min]: • HTML 5 Tutorial For Be...
CSS[8.5 Hr]: • CSS Tutorial In Hindi ...
CSS[1.4 Hr]: • CSS 3 Tutorial For Beg...
Wordpress[3.2 Hr]: • How To Make a WordPres...
Angular[2 Hr]: • Angular Tutorial in Hindi
Java[2.3 Hr]: • Java tutorial in hindi 🔥
Web Scraping[1 Hr]: • Web Scraping Tutorial ...
MongoDB[2 Hr]: • MongoDb Tutorial For B...
Numpy[1 Hr]: • Numpy Tutorial in Hindi
Android Dev[12 Hr]- • Android Development Tu...
Linux[1 Hr]: • Linux Tutorial For Beg...
JQuery[1.1 Hr]: • jQuery Tutorial For Be...
Git and GitHub[1.1 Hr]: • Git & GitHub Tutorial ...
►Complete course [playlist]:
React: • React Js Tutorials in ...
Python- • Python Tutorials For A...
OOP Python- • Object Oriented Progra...
Java: • Java Tutorials For Beg...
JavaScript- • JavaScript Tutorials I...
PHP- • PHP Tutorials in Hindi
C- • C Language Tutorials I...
C++- • C++ Tutorials In Hindi
Git & GitHub- • Git and GitHub Tutoria...
Android Dev- • Android Development Tu...
Python GUI- • Python GUI: Tkinter Tu...
Web Development- • Web Development Tutori...
Python Django: • Python Django Tutorial...
Projects Using HTML, CSS & Javascript- • Projects Using HTML, C...
Data Structure and Algo: • Data Structures and Al...
Follow Me On Social Media
►Website (created using Django Rest & Angular): www.codewithha...
►Facebook: / codewithharry
►Instagram: / codewithharry
Twitter: / codewithharry
Comment "#HarryBhai" if you read this 😉😉
Password generator can be made like this-
#password generator
import string
import random
passlen=int(input('Enter password lenth ' ))
s1=string.ascii_lowercase
s2=string.ascii_uppercase
s3=string.punctuation
s4=string.digits
s=[]
s.extend(s1)
s.extend(s2)
s.extend(s3)
s.extend(s4)
random.shuffle(s)
print(''.join(s[0:passlen]))
chatgpt enters the chat
@@vaibhav9532 😂
@@vaibhav9532 😂
hello I am chatgpt
nice to see you
@@vaibhav9532dhoti q khol rha he bhai. 😅
Agr waqai me yehi kaam kiya he usne
Harry bhai maine aapka html, css and js with notes wala couce poora dekha hai and they were amazing
Plz launch a backend with notes it would be helpful !🙏🙏🙏 ❤❤❤❤
Yes
Yess we Need to understand Backend programming 💯
We can modify it using file handling. First, we get the user's input for the name under which the password should be saved. Then, we generate the password and ask the user if they accept it. If the user says 'yes,' we save it in a text file with the given name.
Instead of writing all the characters you can also import:
string.ascii_lowercase
string.ascii_uppercase
string.punctuation
string.digits
from string module.
Hum alphabet , special symbols and numbers alag alag list me le lenge aur for loop chala kr randomly tino me se alag alag character leke ek string banayenge. Ban gaya strong password
if we make 3 diff strings for letters,numbers and for characters separately by which we cant select the amt of each category coming in our password and then combine all the 3 it would be much stronger
First, there should be different variables for each i.e. upper, lower, punctuation and digits.
And according to the password length, you should take parts of the characters randomly from each variable and merge them in a single variable .
For ex. 25% upper chars,
Next 25% lower chars,
Next 25% punctuations
And the last 25% for digits.
Your merged variable length should be password length.
Then suffle this merged variable and your password is ready.
This will be more strong password because it is containing upper, lower, special chars and digits in all the passwords.
😁
Cool 😎😮❤
you can make different arrays of type of charcacters say onr will contain lower cases, one upper case, one numbes and one symbol, and then take equal number of entries from all, and shuffle that( it can be done by keeping every entry of the password in an array again, and using rand function for indices, everytime an index comes it should be printed and a check is needed to map the used characters of the password array, please comment about how did u like my approach.
Reminds me xkcd comic on why these passwords are actually less efficient.
Must read
I think we must also do length +1 bcz for ex if user want 5 length password but the range function goes till 4 only so what you think??
It started with 0 not 1
@@bhanuupraity83 yeah thanks bro i got a bit confused here !!
New web development course plz ❤
10 letter of word in which we can use any random as upper case lower case numbers, and symbols and all are must atleast 2 should be in appled in the following ways
New Web development course with emerging technologies like chatgpt A.I etc
Adding an if condition before randome choice
If len(password)
Harry bhaiya ek help kardo please ye question ka answer bata doo please 😭😭😭😭😭😭😭😭😭😭
1.Write a Pl/SQL program to calculate Area of rectangle whose length = 20 and width= 10
Ot= 200
2.Write a Pl/SQL program to find sum of first 10 natural nos.
Ot=55
Bhai please bata doo 😭😭😭😭
Machine learning keliye konse prosser ki requirements he?
i5 ya ryzen 5mein bhi chalega.... If u have simple browser also then also it works on google collab. You don't need to burn your cpu.gpu
Ultimate Web development course........😊❤
Bhai you can you string module instead of typing every single letter, digit and punctuation.
Nice Harry bro but I made it more easier and blockbuster 🎉🎉🎉
Coders try this :-
import random as rdm
import string
Password = "".join(rdm.sample(string.ascii_letters+string.digits+string.punctuation,6))
print(Password)
There is a problem with this code. It's using the "random" module which generates less random numbers, meaning that the random numbers are easily predictable. It's recommended to use the "secrets" module for such programs, as it provides you with cryptographically strong random numbers.
Add some from AES encryption algorithm
a = string.printable
passw= "".join(random.choice(a) for x in range(10))
print (passw)
harry if youre reading this consider dropping some code review content, website review to be precise, like you did in that fiverr video except this time the entire community can join. it will be very educational imo
Bhaiya salting sa password strong Kiya ja sakta hai
Which microphone do you use for your short video's?
We can make it secure by that a password generated can not be repeated
Uski probability toh bohot km hogi ki same password repeat mein as an output mile
Using binary (pickle) encryption
Meanwhile hackers:
This can also be a bruteforce technique haha thanks
We can make it more strong by using upper and lower cases for alphabets
You can take characters in different variables in it 2 characters will come from each variable, because of this password will have characters of each type Ex- 2_alphabet 2_capital_alphabet 2_symbol 2_numbers and this will be a strong password
New web development courses please
Make react 18 course ?? I wanna study . Currently I am studying from another RUclips channel
Aapki wajah se me bohot achi python Sikh gaya
I'm learning python is it going to be good for earning, please guide???
Make special characters separately
Randomised them too
Then the password we get from alfabat and number
Append them with special characters
Then randomised them too
and for better combinations while creating yhe string put the characters too randomly. As a mathematician I am saying this
socket module ke bareme please ek video banao
Plzz can u tell about theme u have used
And how to remember that 😂
Advance Django Course Please, which include Custom User Login Model, Mixins, Celery, cache, sessions, and more concepts like that.
harry bhai sach bta ,Sala tu kon hai ensan hai ya bhagvan 🍷🍾matalab mind-blowing
Shuffle() use krke ise or strong bana shaktehe
Sir aap aise new cheez kaise soch ke bana lete hai please reply
If the password len is 8 then possibility of every character is length of characters suppose length of characters is 38 . Then I am able to cracked the password in max 8^38 iterations
Bro can u plz make a R programming language tutorial for beginners in Hindi
Is it reverrse engg of passwd predictor
New web development course Bhai please
It could be made more strong by using cryptography module in python
Harry bhai python programming pr aapki 2 playlists he old n new beginner level pr konsi best h
Latest
Harry bhai Meray terminal pay java script run nahi ho rahe please is Kay oper ek video bana dain nodejs bhe install ha path bhe dia huwa ha sub cammed chal rahe bus terminal me code nai chal raha how should we find this problem ?? 🥲😥😥 Please guide
Bhaia Maine python complete kar liya next kon se language ko start Karu. Please bhaia reply kijeya ❤❤❤❤❤❤❤❤
I think you forget to add spaces and cap letter
New Web Development course please!!!!!!!!
is generator main ek esa logic bhi daal do jisse hum generated password ko google drive ya github par store kr sake custom labels ke saath q ki randomly generated password ko to kon hi yaad rakhega...
Wo google drive khud karta he. It asks u everytime. Don't u use lol
Use very special character like pie , omega , alpha , not equal , theta
I heard somewhere that "random" is not so random
Ek TXT file rhegi jisme sara generated password stored rhega and everytime program check krega ki yeh password already generated h ya nhi agar h to new generate krega.
Nice, and extra security ke liye un passwords ke hash ko store karenge, program generated password ke hash ko file mein stored hashes se compare karega...
MEra password:
@_
What if we also add caps characters, python recognises Caps different from small characters
Just print with added space bcz it increases the strength of password
We can use another loop to make sure characters don't get repeated
Now please come with Ultimate Web Development Course!
Please C# with visual studio desktop apps
Bhai Mai btech drop out kardiya because of financial issue now I am trying to learn python how can I get jobs without any graduation please tell me bro 😢
Salting krke thoda tough to hojata h crack krna we can try it
Hashing and Salting karke.
Theme kya thi vs code ki ?
Kia bt hai bhai ki darhi agaye
#harrybhai koi course shuru karo na ... consistency bni rhti hai please
Why it's very hard to learn Web development for non IT background student
Bhai aisa password yad kaise rakhe?
Harry Bhai App Flutter and Dart ka course chalu karo....
duplicate char is not allowed... this can be strong password generator.
import random
import string
def generate_simple_password(length=8):
# Define the character set
characters = string.ascii_letters + string.digits
# Generate a random password
password = ''.join(random.choice(characters) for _ in range(length))
return password
# Generate and display a random password
print("Generated Password:", generate_simple_password())
By using nested password u can make it very very strong password..
Just use crunch.
Bhai yad kesy rakhain gy hum to bhul jaty hain 😂
Can do encryption in password
Add space randomly
Adding symbol and emojis
New Mern stack course ❤
Sir ye Ese bhi to banaya jaa sakta hai
import random
chars = "abcdefghjklmnopqrstuvwxyz!@#$%^&*()ABCDEFGHJKLMNOPQRSTUVWXYZ0123456789"
for i in range(1,10):
password = (random.choice(chars))
print(password,end="")
print("")
bas range ki jagah user input laga denaa
Bhai website kase बनाय
Typescript course please 🥺🥺
Are munna bhaiya zinda hn🤡🤡
already kafi strong hai
we can make password stronger by salting
Use list to make more unbreakable password generator no matter how telented is hacker,
Add more characters
Python game development in android
Kya aapke toothpaste mai chaat masala hai? 😂
Super freshness
We can add numbers too
Wasting 10 minute writing the whole alphabet down instead of using string module
New web development course sir
Deep web development course Bhai plz
Pehle password ko sab leeters mei seedha likhlo uske baad underscore deke sab ulta kardo..... Hacker ka v phat jayega😂
Brother need playlist of python-telegram-bot
I am using same thing to crack password😂😂
So use full but I don't do it beee❤❤❤❤❤❤
New web development and ml course
Great bhai
Raam k 5 baap the 😂😂😂