I Created a Password Generator using Python

Поделиться
HTML-код
  • Опубликовано: 18 янв 2025

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

  • @tushar__og
    @tushar__og 4 года назад +57

    You're are lit sir🔥🔥 thanks for providing everything for us..

    • @CodeWithHarry
      @CodeWithHarry  4 года назад +18

      Thanks and welcome

    • @shadyakhtar
      @shadyakhtar 4 года назад +2

      @@CodeWithHarry Can u make secure password vault where we can keep password as back apart from lastpass , avast password and other stuffs, because it's a bit of privacy concern and some time lost of data. And suggest where to store the password vault as a backup.

    • @divijgogia8479
      @divijgogia8479 3 года назад

      @@CodeWithHarry pls make java script with notes and thanks for all other videos really help a lot

    • @anshulsingh7871
      @anshulsingh7871 2 года назад

      @@CodeWithHarry b

  • @riteshgupta6438
    @riteshgupta6438 4 года назад +5

    You really are a great teacher and brother for all students who are willing to learn programming.
    I would like to mention one thing - Apart from using s.extend(list(s1)) and so forth, we could have used s+= list(s1) + list(s2) + list(s3) + list(s4)

    • @hacker4areason
      @hacker4areason 2 года назад +1

      You cannot add lists.

    • @tayyab.sheikh
      @tayyab.sheikh 5 месяцев назад +2

      import string
      import random
      letters = string.ascii_letters
      digits = string.digits
      specials = string.punctuation
      combined = letters + digits + specials # this is a string
      try:
      pass_len = int(input('
      Enter the length of the password : '))
      except ValueError as err:
      print('Please Enter only integer value!')
      pass_len = int(input('Enter the length of the password : '))
      passwd = random.sample(combined, pass_len)
      print('Here is a strong password: ', end='')
      print(''.join(passwd))
      I compressed the whole code to only 17 lines!

  • @AliKhan-jr1wp
    @AliKhan-jr1wp 4 года назад +2

    Sir you are the hero of students that can not afford expansive Acadmy .. thank you so much 💗💗💗💗💗💗💗💗💗💗💗💗💗💗💗💗

  • @codewithharryfanchannel559
    @codewithharryfanchannel559 4 года назад +1

    You are genius and best coder in you tube.

  • @starforged-21
    @starforged-21 4 года назад

    acha kaam kr rhe ho bhaiya .. lockdown mein ab jake python ki applications ki power pta chali...
    bdiya lge rho bhaiya.............

  • @mars_ka_wasi
    @mars_ka_wasi 2 года назад +6

    You can handle gibbrish using try and except
    you can use:
    try:
    plen = int(input("Enter the password length:
    "))
    except:
    sys.exit("Invalid Length")
    but first of all you have to import the sys module so that you can exit it
    Thx code with harry for helping us in the journey of learning this beautiful language....

  • @udaypratapsingh4927
    @udaypratapsingh4927 4 года назад +2

    Sir you are doing great work and my frist programming teacher. 🙏🙏

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

    plen = input("Enter password length
    ")
    if plen.isdigit() == True:
    plen = int(plen)
    print("Your password is: ")
    print("".join(random.sample(s, plen)))
    else:
    print("Please enter only digits")

  • @dharmveersinhsolanki3116
    @dharmveersinhsolanki3116 4 года назад

    Aapke videos ki bhukh lagi hai jitne banaoge utne Kam hai Bhai . Thank you Harry bhai ❤️

  • @yugandharchevitolla
    @yugandharchevitolla 4 года назад +3

    Hi bhayya
    My name:- Yugandhar
    Region:- Telangana
    I solved the bug by using "try","except","else" statements
    Thank for teaching
    Your teaching style is awesome 👌

    • @tayyab.sheikh
      @tayyab.sheikh 5 месяцев назад

      import string
      import random
      letters = string.ascii_letters
      digits = string.digits
      specials = string.punctuation
      combined = letters + digits + specials # this is a string
      try:
      pass_len = int(input('
      Enter the length of the password : '))
      except ValueError as err:
      print('Please Enter only integer value!')
      pass_len = int(input('Enter the length of the password : '))
      passwd = random.sample(combined, pass_len)
      print('Here is a strong password: ', end='')
      print(''.join(passwd))
      I compressed the code to only 17 lines!

  • @millionaire8422
    @millionaire8422 4 года назад +1

    Bhut mst kaam karta hai re tu...

  • @priyanshuparmar1168
    @priyanshuparmar1168 4 года назад +1

    harry bahiya , the best part about you that you try to occilate between level to take care of the newcommers.
    Thanks

  • @MuhammadJamil-ho6wl
    @MuhammadJamil-ho6wl 3 года назад +1

    What a programmer. 😊😍😍💯

  • @tanzeelahmed2055
    @tanzeelahmed2055 4 года назад

    Wah bhai wah...... Yeh kaise kia.......... Samajh to a gya....... Laikin bhai tumhei is tarha ke ideas ate kaha se hai?

  • @K-CEEE-PrinceKoli
    @K-CEEE-PrinceKoli 4 года назад

    harry bhai aap k channel se mena puri python sikhi h thankyou for upload this free videos

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

    first i watched your python 15 hour course after this i started follow you😍

  • @ravvkush
    @ravvkush 4 года назад +1

    Harry bhai tum bhot acha kaam kr rhe ho. Ese hi krte rhna .. aur yeh short projects ki video hi banate rhna hmesa . it help us to boast knowledge and get to know real world prorblem's solution. :)

  • @Shivam-ed5fn
    @Shivam-ed5fn 4 года назад +1

    Sir one exercise,please make it:
    Exercise:-
    A program which takes input from user of time and messege and then print that messege on that time.

  • @susandahal2796
    @susandahal2796 4 года назад +1

    Vaai nice video
    It's me Susan from nepal

  • @sharadshukla7043
    @sharadshukla7043 4 года назад +2

    Hello ,
    sir thank you for providing free python tutorials

  • @niteshchauhan6431
    @niteshchauhan6431 2 года назад +1

    harry bhai while loop chlake check kr lenge.
    if plen.isdigit():
    print("".join(random.sample(s, int(plen))))
    break
    else:
    print("enter a valid number : ")
    continue

  • @savage_superheroes4750
    @savage_superheroes4750 4 года назад +13

    Sir...I want to start learning ML, so before starting it did I had to have the knowledge of the python or any other language ???
    Plsz sirr reply ❤

    • @paypachandra653
      @paypachandra653 4 года назад

      Nice ques...I walso want to know this thing ??

    • @raseshshetty2386
      @raseshshetty2386 4 года назад +1

      You need to know basic of any one
      Oop language . I prefer python because Harry bhai has course on it

    • @RahulSingh-il6sz
      @RahulSingh-il6sz 4 года назад

      Language is not a primary thing if someone wants to learn ML. Just start with basic python and learn the lib used for performing ML algos, promptly learn maths behind it. One free website is Great Learning for learning Stats.

    • @akankshasoni3479
      @akankshasoni3479 4 года назад

      Yes Mansi any one of the oops languages but python is preferable because it is easy and provides a lot of functionality required for easy coding

  • @shashwatsrivastava6391
    @shashwatsrivastava6391 3 года назад

    U r the best teacher

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

    while True:
    plen = input("Enter the length of password: ")
    if plen.isdigit():
    plen = int(plen)
    break
    else:
    print("Invalid Input")

  • @rayhann9780
    @rayhann9780 3 года назад +1

    20:41 (Just user try and except method):-
    import string
    import random
    s1 = string.ascii_letters
    s2 = string.digits
    s3 = string.punctuation
    try:
    print('''----Welcome to Password Generator----
    ___Generate your password for free___''')
    paswrdLen = int(input("Enter length of password you want in integer:- "))
    s_1 = list(s1)
    s_2 = list(s2)
    s_3 = list(s3)
    list = []
    list.extend(s_1)
    list.extend(s_2)
    list.extend(s_3)
    random.shuffle(list)
    # print("Your Password is:-")
    print("Your Password is:-","".join(list[0:paswrdLen]))
    # print("".join(random.sample(list,paswrdLen)))--> prints any 4(paswrdLen) random items inside the list
    except:
    raise ValueError("Enter integer!")

  • @kgaurav7097
    @kgaurav7097 4 года назад +4

    Sir, please make playlist on flutter and dart

  • @yashgaur3763
    @yashgaur3763 4 года назад +2

    amazing thanks a lot sir ....

  • @stunt739
    @stunt739 3 года назад

    U r very good teacher for a beginner 🔥🔥🔥🔥

  • @shubhgarg5821
    @shubhgarg5821 4 года назад +19

    Sir, please start a playlist of data structures and algorithm. So that we get help in placement session

  • @tayyab.sheikh
    @tayyab.sheikh 5 месяцев назад +1

    import string
    import random
    letters = string.ascii_letters
    digits = string.digits
    specials = string.punctuation
    combined = letters + digits + specials # this is a string
    try:
    pass_len = int(input('
    Enter the length of the password : '))
    except ValueError as err:
    print('Please Enter only integer value!')
    pass_len = int(input('Enter the length of the password : '))
    passwd = random.sample(combined, pass_len)
    print('Here is a strong password: ', end='')
    print(''.join(passwd))
    I compressed the code to only 17 lines!

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

    Suggestions:
    1. You can use list(string.printables) instead of that much extend functions
    2. These passwords are not practical. Use list(string.ascii_letters+string.digits)

  • @tanzeelahmed2055
    @tanzeelahmed2055 4 года назад +7

    First Solution
    if plen >= '0' and plen

  • @amandubey8780
    @amandubey8780 4 года назад +2

    Thanks bai I got t-shirt from hacktober using your trick thanks ❤️❤️❤️👍

  • @backbenchprogrammer5100
    @backbenchprogrammer5100 4 года назад

    You are best Harry bhai❤👍👏

  • @advancethings762
    @advancethings762 4 года назад +1

    Thank you sir for making new new projects😊

  • @baibhavmishra6725
    @baibhavmishra6725 4 года назад

    Harry sir u are the best...loved this video❣️💖❣️💖❣️

  • @atgamingstudios6445
    @atgamingstudios6445 4 года назад +1

    Nice video sir please continue C++ series

  • @namanbiswajit1112
    @namanbiswajit1112 4 года назад +1

    Sir I love this series 🤩.
    Awesome video

    • @namanbiswajit1112
      @namanbiswajit1112 4 года назад

      Harry bhai thanks for the heart. phehle bar heart Mila ha

  • @AkashKumar-ym4gu
    @AkashKumar-ym4gu 4 года назад

    You Are Legend🙌🙌
    Thank You For Your all the videos of GUI python..😊😊

  • @pralayrana2187
    @pralayrana2187 3 года назад

    Really u are great. I always follow ur YT. Thank u for ur advices.

  • @j4jullu
    @j4jullu 2 года назад

    very good Harry Kumar!

  • @atishayjain2004
    @atishayjain2004 4 года назад +2

    Harry bhaii...ethical hacking ki playlist Banado plz... love your videos 😊

  • @SachinKumar-qo4bb
    @SachinKumar-qo4bb 4 года назад +1

    East or west Harry bhaiya is best

  • @jobnewsnow
    @jobnewsnow 2 года назад

    Eval type casting can change

  • @krishcshah
    @krishcshah 2 года назад

    Finally a tutorial without import random

  • @siasharma6341
    @siasharma6341 4 года назад +1

    while True:
    a = input("Enter password length
    ") # handle gibberish(anything is entered except int)
    b = a.isdigit()
    if b==True:
    plen= int(a)
    break
    else:
    print(f"Invalid value! Please enter the valid value")

  • @yashvishnoi5035
    @yashvishnoi5035 4 года назад

    I just started with python and l Love it to learn from you

  • @bhoyasnehal
    @bhoyasnehal 4 года назад +1

    # author :-Snehal
    # Date :-12-may-2020
    import string
    import random
    s1 = string.ascii_uppercase
    s2 = string.ascii_lowercase
    s3 = string.punctuation
    s4 = string.digits
    plen = (input("Enter Your Password Length :-"))
    # Check it is Numeric or String
    if plen.isdigit():
    plen = int(plen)
    s = []
    s.extend(list(s1))
    s.extend(list(s2))
    s.extend(list(s3))
    s.extend(list(s4))
    random.shuffle(s)
    print("".join(s[0:plen]))
    else:
    print("Somthing Wrong try again and Enter Numeric Value")

  • @kshamanidhibhardwaj8151
    @kshamanidhibhardwaj8151 4 года назад

    Love from Chhattisgarh ❤

  • @facttalks5109
    @facttalks5109 4 года назад +1

    Bhai aap mere life ke sabse awesome bando me ek ho. bhai aap videos me please batao ki ye module inbuilt hai ya external hai. Or bhai kuch android par chalene wale projects Lao bhai please.

  • @amandeepkaur4087
    @amandeepkaur4087 4 года назад

    Bhai itna mushkil password to yaad krna bhi mushkil hi jaega
    lol
    So cool! padsword generator

  • @sayantankoley4457
    @sayantankoley4457 4 года назад

    Love you harry vai,,kiya sikhaya tumne❤❤❤❤,i regard you🙏🙏🙏

  • @vinayprajapati8386
    @vinayprajapati8386 4 года назад

    Jabardast video
    You great 😃

    • @CodeWithHarry
      @CodeWithHarry  4 года назад +1

      Thank you so much 😀

    • @vinayprajapati8386
      @vinayprajapati8386 4 года назад

      @@CodeWithHarry aap python se automation par bhi python program banaye

  • @suklamondal7405
    @suklamondal7405 4 года назад

    I created a program like this using c++ , same concept,"password generator" which I've been using for over a year but the logic is different that I created and I still use it personally.

  • @abch6598
    @abch6598 4 года назад +1

    Bhai ap ny Kamal kr diya

  • @bestOfYoutube01
    @bestOfYoutube01 4 года назад +1

    Please make a coding series on java

  • @hemantgautam3182
    @hemantgautam3182 4 года назад

    Doing great bro these projects will be helpful for our resumes. You are really helping your subscriber 😍😍😍😍

  • @avanishgarkoti3197
    @avanishgarkoti3197 4 года назад

    harry bhai u r doing great work...

  • @vijaykoladara8302
    @vijaykoladara8302 4 года назад +3

    1 ,एक ही दिल है harry bhai कितनी बार जीतोगे ।। Love

  • @Dharmendrakumar-bg1or
    @Dharmendrakumar-bg1or 4 года назад

    You are splendid sir

  • @codingpoker4833
    @codingpoker4833 4 года назад +6

    Sir we can do that,
    Plen=int(input('enter the length of password:
    '))
    While type(Plen)!=int:
    Print(' please enter length in numbers')
    Plen=int(input('enter the length of password:
    '))
    Remain program here

    • @008GAMING-l4o
      @008GAMING-l4o 4 года назад

      nice answer

    • @Shivam-ml7tu
      @Shivam-ml7tu 4 года назад

      If input is not integer there will be error and code below it will not execute

    • @codingpoker4833
      @codingpoker4833 4 года назад

      @@Shivam-ml7tu bro when input is not int the loop will again and again ask him to write length in number when the user enters length in number then the execution of program move otherwise loop remain going on.

  • @97pogo
    @97pogo 4 года назад

    you are a guru for me

  • @shivamjain3952
    @shivamjain3952 4 года назад

    Your content is best

  • @TechnicaLworld171
    @TechnicaLworld171 4 года назад +1

    Nice plz tell us how to make bots plz plz make a vidoe on it .....sir plz lpz

  • @Real_Sigma_Talks
    @Real_Sigma_Talks 2 года назад

    thanks sir helps alot in working

  • @electronicsedwithayushgupta
    @electronicsedwithayushgupta 4 года назад

    Bhai bohot.mehnat karte ho aap or wo mehnat aapki videos me dikhti hai bhai

  • @saransabarish7394
    @saransabarish7394 2 года назад

    Bro you are awesome.... loved your explanation \m/

  • @akshatdodhiya
    @akshatdodhiya 4 года назад

    You are awesome sir 😊
    I love your tutorials ♥️

  • @beerajsaikia
    @beerajsaikia 6 месяцев назад

    we can add condition , if p_length == int:
    pass

  • @kaustubhb9581
    @kaustubhb9581 4 года назад +10

    This will keep asking you for the password length until you put the integer number.
    while True:
    try:
    plen = int(input("Enter the password length
    "))
    break
    except ValueError :
    print("Oops! That's not the valid number. Please try again...")

  • @g22l65
    @g22l65 4 года назад +2

    You can use string. printable() for get all this letters with symbol

    • @dhawalwadibhasme548
      @dhawalwadibhasme548 3 года назад

      String.printable also has blank space so we cannot use it for the purpose of password generation.

  • @Ad-pg7xg
    @Ad-pg7xg 4 года назад

    This speed and explanation is good dear , u too could diff with other videos

  • @technologygyan8107
    @technologygyan8107 4 года назад

    Ek no brooo 👍👍👍

  • @aabhasmishra3118
    @aabhasmishra3118 2 года назад

    Error ke caught karne ke liye extension handling ka istamal karna hoga while flag == True laga ke usme try: aur excend dalna padega.

  • @engineerbhai7642
    @engineerbhai7642 4 года назад

    Maza ah gaya. You are great.

  • @meme_engineering4521
    @meme_engineering4521 4 года назад +1

    Bhai itni energy kaha se aati hai aapme

  • @SandeepSingh-nj5zv
    @SandeepSingh-nj5zv 4 года назад +1

    Bhaiya can u tell us how to make this type of applications for mobile platform

  • @mahisoni1750
    @mahisoni1750 3 года назад

    Tq so much sir 🥰

  • @WaqasAhmed-om8ph
    @WaqasAhmed-om8ph 4 года назад +1

    Python 3.8 mein extend = equal to append k hain.

  • @vimalkumarchaudhary1913
    @vimalkumarchaudhary1913 4 года назад +1

    So amazing nd incredible sir

    • @CodeWithHarry
      @CodeWithHarry  4 года назад +3

      Thank you so much 😀

    • @kidsstation9257
      @kidsstation9257 4 года назад +2

      @@CodeWithHarry You always comes with awesome content. Nowadays i learn django with your series. It's such great. 👍😃

    • @vimalkumarchaudhary1913
      @vimalkumarchaudhary1913 4 года назад

      @@CodeWithHarry its ur plesure sir

  • @sayandipghosh4465
    @sayandipghosh4465 4 года назад +1

    Harry bhai, how to make chatbot with python?ek video banao bhai...plz comments bhai...and love your teaching style.♥️

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

    Why you use ascii in lower and upper and not in digit

  • @dipannita7436
    @dipannita7436 4 года назад +1

    here (if__name=="__main__" ) is completely not needed .
    is it ?????

  • @cyberbooth1585
    @cyberbooth1585 4 года назад

    Great video. Keep up the good work.

  • @sardarwali6755
    @sardarwali6755 3 года назад

    first of all i really really want to tanks to you for everything that i learn from you.
    I haven't watched all of your videos but when ever i watch you videos i really learn something you.
    sir i have a question that to be a hacker. what should i learn for hacking

  • @avaniavijit7327
    @avaniavijit7327 4 года назад

    Bhai you are phenomenal

  • @GauravRaj-cq7sk
    @GauravRaj-cq7sk 3 года назад

    sir thank you for your kind explanation . Keep making such videos

  • @Ravi-in9om
    @Ravi-in9om 4 года назад +1

    I see your web development series but I install vscode then type console.log and any key not suggest.
    What problem

  • @amrutgarbhe9715
    @amrutgarbhe9715 4 года назад

    You are awesome... Sir

  • @akm1712
    @akm1712 4 года назад

    ..isdigit() function ka use kr skte hai...
    Agr digit hoga tabhi wo run krega otherwise wo koi instructions print krega ...

  • @deepapandey849
    @deepapandey849 4 года назад

    this python series is my fab....pleaseeeee harry make a video on how to operate with very large integer values in python of around 300 digits

  • @97pogo
    @97pogo 4 года назад

    you are programming god

  • @ArunKumar-vy1ib
    @ArunKumar-vy1ib 4 года назад

    You should review your video friend but whole video is knowledge full

  • @ujjwalkant5285
    @ujjwalkant5285 4 года назад +1

    This stuff is bring you a lot views

  • @yogendrasrivastava3850
    @yogendrasrivastava3850 4 года назад +1

    Bhaiya please data structures and algorithms ki course start karo kyoki interview mai wahi main hai..please

  • @nasabangla1793
    @nasabangla1793 4 года назад

    Very good sir ❤️

  • @spider3912
    @spider3912 4 года назад

    Thanks 😊☺️😘

  • @daksheshrajal2975
    @daksheshrajal2975 4 года назад

    You are amazing bro
    Love you brother

  • @abhishektoo
    @abhishektoo 4 года назад +11

    if not(plen.isdigit()):
    print("Wrong Entry")
    else:
    plen = int(plen)

    • @p.k5016
      @p.k5016 4 года назад +2

      little correction:
      if plen==str:
      print("Wrong Entry")
      else:
      plen = int(plen)

    • @incognitozzz9238
      @incognitozzz9238 4 года назад

      both din worked

    • @pratikdokhe7198
      @pratikdokhe7198 4 года назад

      @@p.k5016 vo else mai jayga hi nhi kabhi

  • @bamanevishwajeet
    @bamanevishwajeet 4 года назад

    Bhai agar aap password aur password kiske liye banaya hai un dono ko agar file mai save save karte toh aur bhi accha hota..
    But love you bhai