The FULL Guide To Secrets (Module) For Python Developers

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 29

  • @Airmanf7
    @Airmanf7 Рік тому +24

    I vote for randomosity!

  • @emmanuelschmulewitz1215
    @emmanuelschmulewitz1215 Рік тому

    Thank you for the video! Is there a way to pick elements randomly from a list but with different weights in secrets module? - There is a similar functionality in random module but I'd prefer implementing this in the secrets module.

  • @bharathsairaghavanalluri9961

    500th like for u brother

  • @ronnienolan5436
    @ronnienolan5436 Рік тому +5

    import secrets
    lunch = secrets.choice(["Beans","Meat","Pasta"])
    print(f"Today I had {lunch}.")

    • @Indently
      @Indently  Рік тому +6

      That's the most secure choice of lunch I've ever seen

  • @aeghohloechu5022
    @aeghohloechu5022 Рік тому +6

    For 9:46 note that we would be hashing our passwords anyway which turn them into fixed length data, so there is actually no vulnerability in proper usage.

  • @eigen_art_ich
    @eigen_art_ich Рік тому +4

    Good to know! And great that I used "import random" for my Password Generator ...FAIL 🙂

    • @Indently
      @Indently  Рік тому +2

      We all start there ahah

  • @dingaroo2003
    @dingaroo2003 Рік тому +3

    It's lunch hour but I am craving for breakfast

  • @mokongx3m
    @mokongx3m Рік тому

    On making a login program, I made a small GUI for myself that lets me log into my Oracle SQL server and I can view and edit data in my tables through the GUI.
    For the login when the user enters username and password (password displays on screen as dots so at least not shown on screen when typed), they are stored in variables which are then passed into the connection string which itself is stored as a variable.
    I assume would this be vulnerable to a hacker? Would someone be able to say intercept packets between the GUI and the DB, print the connection variable then print the u/n and password variables.
    If so how could I make it more secure?
    Granted this is only something running on my own laptop but just trying to think of ways to improve it :)

  • @vontewari1959
    @vontewari1959 Рік тому +1

    What command did you use to format this list during the secrets.choice function?

  • @goktugyavuzer6086
    @goktugyavuzer6086 10 місяців тому

    0:13 cryptographically secure
    1:33 cryptographically secure
    2:12 cryptographically secure
    3:01 cryptographically secure
    9:33 cryptographically secure
    10:14 cryptographically secure
    10:57 cryptographically secure

  • @cjp0989
    @cjp0989 Рік тому

    Thank you for the well explained video! I’m using secrets for a class project and just by hearing these explanations I’m able to understand it a lot more than before (I’m new to programming).

  • @idus
    @idus Рік тому

    Or zero knowledge proof?

  • @hahahumble
    @hahahumble Рік тому

    This video was really helpful. Thanks for sharing!

  • @LambdaCreates
    @LambdaCreates Рік тому

    Second comment, also great video!

  • @littlenerd6185
    @littlenerd6185 Рік тому

    how to some apps have a python enviroment with them when we install them and the client doesnt need to install python in their system, how can we create one

    • @adiaphoros6842
      @adiaphoros6842 Рік тому

      You can either use a bundler (like pyInstaller) or a compiler (like Nuitka). The difference between the 2 is that a bundler doesn’t translate the Python byte code into machine code.

  • @appuz9220
    @appuz9220 Рік тому

    What IDE is this?

  • @davidl3383
    @davidl3383 Рік тому

    Very cool thanks

  • @jfk_the_second
    @jfk_the_second Рік тому

    🥦

  • @rishiraj2548
    @rishiraj2548 Рік тому

    Thanks

  • @SkyFly19853
    @SkyFly19853 Рік тому

    Can it be used to obscure a video game made in Python by converting into an exe file?

    • @Isa-dw7wo
      @Isa-dw7wo Рік тому

      use pyinstaller if you need to turn a python file to exe

    • @SkyFly19853
      @SkyFly19853 Рік тому

      @@Isa-dw7wo
      But after that, can it be used to make the code obscured against piracy?

    • @Isa-dw7wo
      @Isa-dw7wo Рік тому

      @@SkyFly19853 well im not sure about that im sure you can take a look at the exe through a hex dump or dissembler and see for yourself if its secure

    • @SkyFly19853
      @SkyFly19853 Рік тому

      @@Isa-dw7wo
      I see.

    • @itsentdev
      @itsentdev Рік тому

      Ugh, people upset about 'piracy' when they made a game in freaking python. You don't even know what you're talking about!