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.
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.
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 :)
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).
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
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.
I vote for randomosity!
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.
500th like for u brother
import secrets
lunch = secrets.choice(["Beans","Meat","Pasta"])
print(f"Today I had {lunch}.")
That's the most secure choice of lunch I've ever seen
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.
Good to know! And great that I used "import random" for my Password Generator ...FAIL 🙂
We all start there ahah
It's lunch hour but I am craving for breakfast
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 :)
What command did you use to format this list during the secrets.choice function?
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
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).
Or zero knowledge proof?
This video was really helpful. Thanks for sharing!
Second comment, also great video!
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
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.
What IDE is this?
Very cool thanks
🥦
Thanks
Can it be used to obscure a video game made in Python by converting into an exe file?
use pyinstaller if you need to turn a python file to exe
@@Isa-dw7wo
But after that, can it be used to make the code obscured against piracy?
@@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
@@Isa-dw7wo
I see.
Ugh, people upset about 'piracy' when they made a game in freaking python. You don't even know what you're talking about!