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 😉😉

Комментарии • 182

  • @pythonwithak8581
    @pythonwithak8581 Год назад +116

    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]))

  • @anmolgumbhir2037
    @anmolgumbhir2037 Год назад +33

    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 !🙏🙏🙏 ❤❤❤❤

  • @MuhammadAsadSeo
    @MuhammadAsadSeo Месяц назад +1

    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.

  • @isumithere
    @isumithere Год назад +2

    Instead of writing all the characters you can also import:
    string.ascii_lowercase
    string.ascii_uppercase
    string.punctuation
    string.digits
    from string module.

  • @Mr.dhaneshwar
    @Mr.dhaneshwar Год назад +3

    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

  • @shashwat69
    @shashwat69 Год назад +2

    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

  • @tarunsinha1477
    @tarunsinha1477 Год назад +9

    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.
    😁

  • @utsav8324
    @utsav8324 Год назад

    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.

  • @StudyLOL.
    @StudyLOL. Год назад +1

    Reminds me xkcd comic on why these passwords are actually less efficient.
    Must read

  • @rakshitjain5059
    @rakshitjain5059 Год назад +3

    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??

    • @bhanuupraity83
      @bhanuupraity83 Год назад +1

      It started with 0 not 1

    • @rakshitjain5059
      @rakshitjain5059 Год назад

      @@bhanuupraity83 yeah thanks bro i got a bit confused here !!

  • @Who-Knows0
    @Who-Knows0 Год назад +107

    New web development course plz ❤

  • @sushantnichat4971
    @sushantnichat4971 Год назад

    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

  • @raeesahmed7283
    @raeesahmed7283 Год назад +4

    New Web development course with emerging technologies like chatgpt A.I etc

  • @chandanbl6786
    @chandanbl6786 8 месяцев назад +1

    Adding an if condition before randome choice
    If len(password)

  • @kukigaming1124
    @kukigaming1124 Год назад +1

    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 😭😭😭😭

  • @vadariyaman
    @vadariyaman Год назад +1

    Machine learning keliye konse prosser ki requirements he?

    • @near_.
      @near_. Год назад

      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

  • @ravish4893
    @ravish4893 Год назад +2

    Ultimate Web development course........😊❤

  • @mr.technoid
    @mr.technoid Год назад +1

    Bhai you can you string module instead of typing every single letter, digit and punctuation.

  • @adityascoding
    @adityascoding Год назад

    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)

  • @Some-Programmer
    @Some-Programmer Год назад

    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.

  • @satishbhuktar2020
    @satishbhuktar2020 Год назад +1

    Add some from AES encryption algorithm

  • @ravilipne3350
    @ravilipne3350 Год назад +1

    a = string.printable
    passw= "".join(random.choice(a) for x in range(10))
    print (passw)

  • @AnksioXD
    @AnksioXD Год назад

    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

  • @shivamdelhi3676
    @shivamdelhi3676 Год назад +1

    Bhaiya salting sa password strong Kiya ja sakta hai

  • @hrazamemon4040
    @hrazamemon4040 11 месяцев назад

    Which microphone do you use for your short video's?

  • @Gaming_Crusaders
    @Gaming_Crusaders Год назад +2

    We can make it secure by that a password generated can not be repeated

    • @FACTO597
      @FACTO597 9 месяцев назад +1

      Uski probability toh bohot km hogi ki same password repeat mein as an output mile

  • @arihantkothari4146
    @arihantkothari4146 Год назад +1

    Using binary (pickle) encryption

  • @elliotthehacker
    @elliotthehacker Год назад +3

    Meanwhile hackers:
    This can also be a bruteforce technique haha thanks

  • @Shubham-by5od
    @Shubham-by5od Год назад

    We can make it more strong by using upper and lower cases for alphabets

  • @gautambaldaniya6060
    @gautambaldaniya6060 Год назад

    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

  • @hitpremanandgovindsharanji
    @hitpremanandgovindsharanji Год назад +54

    New web development courses please

  • @tgayush1424
    @tgayush1424 Год назад +2

    Make react 18 course ?? I wanna study . Currently I am studying from another RUclips channel

  • @Loveleensharma763
    @Loveleensharma763 Год назад +1

    Aapki wajah se me bohot achi python Sikh gaya

    • @Muslims-are-Muslims
      @Muslims-are-Muslims 8 месяцев назад

      I'm learning python is it going to be good for earning, please guide???

  • @noobjok3r640
    @noobjok3r640 Год назад

    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

  • @suraj.mohapatra
    @suraj.mohapatra Год назад

    and for better combinations while creating yhe string put the characters too randomly. As a mathematician I am saying this

  • @sudo_sunil
    @sudo_sunil Год назад +1

    socket module ke bareme please ek video banao

  • @abhigyansingh5919
    @abhigyansingh5919 Год назад

    Plzz can u tell about theme u have used

  • @Mayank_Bisht_MB
    @Mayank_Bisht_MB Год назад +4

    And how to remember that 😂

  • @coderzadda
    @coderzadda Год назад

    Advance Django Course Please, which include Custom User Login Model, Mixins, Celery, cache, sessions, and more concepts like that.

  • @omkarsapkal7104
    @omkarsapkal7104 Год назад

    harry bhai sach bta ,Sala tu kon hai ensan hai ya bhagvan 🍷🍾matalab mind-blowing

  • @rpcgaming2894
    @rpcgaming2894 Год назад

    Shuffle() use krke ise or strong bana shaktehe

  • @vaibhavkrishna8994
    @vaibhavkrishna8994 Год назад

    Sir aap aise new cheez kaise soch ke bana lete hai please reply

  • @bangimusaif2973
    @bangimusaif2973 5 месяцев назад

    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

  • @harshsulakhe2720
    @harshsulakhe2720 Год назад +1

    Bro can u plz make a R programming language tutorial for beginners in Hindi

  • @Listingviral
    @Listingviral Год назад

    Is it reverrse engg of passwd predictor

  • @parica117
    @parica117 Год назад +6

    New web development course Bhai please

  • @himangshude3546
    @himangshude3546 9 месяцев назад

    It could be made more strong by using cryptography module in python

  • @anonymousownerr
    @anonymousownerr Год назад

    Harry bhai python programming pr aapki 2 playlists he old n new beginner level pr konsi best h

  • @internetwithsahir
    @internetwithsahir Год назад

    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

  • @sonydevi9969
    @sonydevi9969 Год назад

    Bhaia Maine python complete kar liya next kon se language ko start Karu. Please bhaia reply kijeya ❤❤❤❤❤❤❤❤

  • @rajkushwaha8879
    @rajkushwaha8879 Год назад

    I think you forget to add spaces and cap letter

  • @uneebbhatti1388
    @uneebbhatti1388 Год назад +5

    New Web Development course please!!!!!!!!

  • @kamalkishoru
    @kamalkishoru Год назад

    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...

    • @saarza9991
      @saarza9991 Год назад

      Wo google drive khud karta he. It asks u everytime. Don't u use lol

  • @animenetwork7951
    @animenetwork7951 Год назад

    Use very special character like pie , omega , alpha , not equal , theta

  • @dastagirwajahat
    @dastagirwajahat Год назад +1

    I heard somewhere that "random" is not so random

  • @username_taken_se_pareshan_boi

    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.

    • @codyandersan
      @codyandersan Год назад +1

      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...

  • @sjaomsshiqkq
    @sjaomsshiqkq Год назад +1

    MEra password:
    @_

  • @someoneunknownndlonely3403
    @someoneunknownndlonely3403 Год назад

    What if we also add caps characters, python recognises Caps different from small characters

  • @harshittechnology6955
    @harshittechnology6955 Год назад

    Just print with added space bcz it increases the strength of password

  • @Shubh__05-r8y
    @Shubh__05-r8y Год назад

    We can use another loop to make sure characters don't get repeated

  • @subhsinghania7580
    @subhsinghania7580 Год назад

    Now please come with Ultimate Web Development Course!

  • @m.arshad8341
    @m.arshad8341 Год назад +1

    Please C# with visual studio desktop apps

  • @venkateshvictory7245
    @venkateshvictory7245 7 месяцев назад

    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 😢

  • @ashishbhatt231
    @ashishbhatt231 Год назад

    Salting krke thoda tough to hojata h crack krna we can try it

  • @panchalchetan618
    @panchalchetan618 Год назад +1

    Hashing and Salting karke.

  • @mangaminds1
    @mangaminds1 Год назад

    Theme kya thi vs code ki ?

  • @calmsounds5166
    @calmsounds5166 9 месяцев назад

    Kia bt hai bhai ki darhi agaye

  • @kvonfire4262
    @kvonfire4262 Год назад

    #harrybhai koi course shuru karo na ... consistency bni rhti hai please

  • @MurtuzaPatel58
    @MurtuzaPatel58 Год назад

    Why it's very hard to learn Web development for non IT background student

  • @sdass500
    @sdass500 Год назад +1

    Bhai aisa password yad kaise rakhe?

  • @mokisherp
    @mokisherp Год назад

    Harry Bhai App Flutter and Dart ka course chalu karo....

  • @arnabmondal81
    @arnabmondal81 Год назад

    duplicate char is not allowed... this can be strong password generator.

  • @wolfstories555
    @wolfstories555 День назад

    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())

  • @fitnesssecrets4046
    @fitnesssecrets4046 Год назад

    By using nested password u can make it very very strong password..

  • @curiouscat112
    @curiouscat112 7 месяцев назад

    Just use crunch.

  • @amaanali7021
    @amaanali7021 Год назад

    Bhai yad kesy rakhain gy hum to bhul jaty hain 😂

  • @khadijaqadri3345
    @khadijaqadri3345 Год назад +1

    Can do encryption in password

  • @sk21_
    @sk21_ Год назад

    Add space randomly

  • @shubhamsahani4844
    @shubhamsahani4844 Год назад

    Adding symbol and emojis

  • @Zafrandev
    @Zafrandev Год назад

    New Mern stack course ❤

  • @bepositive271
    @bepositive271 Год назад +1

    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

  • @AffectionateBallet-lv7xc
    @AffectionateBallet-lv7xc 7 месяцев назад

    Bhai website kase बनाय

  • @itx_bilal172
    @itx_bilal172 Год назад

    Typescript course please 🥺🥺

  • @ritanshusingh5084
    @ritanshusingh5084 Год назад

    Are munna bhaiya zinda hn🤡🤡

  • @somdebsar7378
    @somdebsar7378 Год назад

    already kafi strong hai

  • @aryanshaw616
    @aryanshaw616 Год назад +1

    we can make password stronger by salting

  • @divyanshabhimanyu2259
    @divyanshabhimanyu2259 Год назад

    Use list to make more unbreakable password generator no matter how telented is hacker,

  • @upendrasahu8491
    @upendrasahu8491 Год назад +1

    Add more characters

  • @Tkt7
    @Tkt7 Год назад +2

    Kya aapke toothpaste mai chaat masala hai? 😂

  • @headshotgaming6729
    @headshotgaming6729 Год назад

    We can add numbers too

  • @istemihanmp
    @istemihanmp 7 месяцев назад

    Wasting 10 minute writing the whole alphabet down instead of using string module

  • @namangarg8799
    @namangarg8799 Год назад +1

    New web development course sir

  • @jaydeepkhalesiya5993
    @jaydeepkhalesiya5993 Год назад

    Deep web development course Bhai plz

  • @SankhadeepDass
    @SankhadeepDass Год назад

    Pehle password ko sab leeters mei seedha likhlo uske baad underscore deke sab ulta kardo..... Hacker ka v phat jayega😂

  • @techqsr
    @techqsr Год назад

    Brother need playlist of python-telegram-bot

  • @vizardoffyt8464
    @vizardoffyt8464 7 месяцев назад

    I am using same thing to crack password😂😂

  • @Zoyablogger3
    @Zoyablogger3 Год назад +1

    So use full but I don't do it beee❤❤❤❤❤❤

  • @CODEINFINITY
    @CODEINFINITY Год назад

    New web development and ml course

  • @HarshVardhan-be4pm
    @HarshVardhan-be4pm Год назад

    Great bhai

  • @Aghakhansports2310
    @Aghakhansports2310 Год назад

    Raam k 5 baap the 😂😂😂