Комментарии:
What application is he using?
Ответитьwhat would be the code if you want numbers and/or letter to be duplicated or even show up 3+ in the same code?
Ответитьhow do you on this generator make capital letters less as i only need 1
ОтветитьI set it up to do 394 as length so it is my full screen then set the amount to one billion it has been ten minuets and it is still going 😅
Ответитьfucking legend
Ответитьworked like a charm, thanks alot!
Ответитьor just write: password = ''.join(random.choices(string.ascii_letters + string.digits + string.punctuation, k=number of characters in your password))
ОтветитьI kinda made a cleaner version ty for the video
import string
import secrets
alphabet = string.ascii_lowercase + string.ascii_uppercase + string.punctuation + string.digits
password = ''.join(secrets.choice(alphabet) for i in range(25))
print (password)
One-liner:
print(__import__('base64').b85encode(__import__('os').urandom(16)).decode('utf-8'))
Hello, please tell us which command can we add to create a password and use at every random only one time each character?
Thank you!
We can use .shufflle
Ответитьgreat video! Is there a way to make it a strong password or are those strong passwords? Or is strong password generator just a hype term to get more views?
ОтветитьThanks for making this task easier to understand.
Ответитьthank you so much <3
i am trying to learn python, helped me a lot
Hey I am new to coding, in the video he says that .sample does not use the same character twice. Is there any function or whatever .sample is called that allows you to use it multiple times? Lets say I wanted to make a 100 character long password, for example. How could I achieve this? Is the only way generating 10 amount 10 length passwords and putting them all together?
ОтветитьThx for all the great content
ОтветитьGreat video, thanks.
ОтветитьThis is my favorite so far
Ответитьi get this error when i try to start it:
line 14
all =
^
SyntaxError: invalid syntax
do you know how to fix it?
thank you very much .. i used infinite loop , n it creates many passwords ....
ОтветитьEducation is not the filling of a pail but the lighting of a fire?
Ответитьgood tutorial thanks
ОтветитьGood Tutorial
ОтветитьWhat app did you use? I want to make one :)))
ОтветитьTnx
ОтветитьNeuralnine channel is heavily underrated...
ОтветитьAnd how to use this for hack Instagram Password????
ОтветитьWhat app is that you programming in?
ОтветитьThis is great!
ОтветитьNice
ОтветитьIssues comes when lenght > 10 and only numbers = True
raise ValueError("Sample larger than population or is negative") ValueError: Sample larger than population or is negative
from string import ascii_uppercase as uppercase_letters
ОтветитьIt would be nice if you could build a nice gui!
Ответитьwow thanks it worked
ОтветитьI'm new to programming, can someone explain to me this part, like why and how it works?
all = ""
if upper:
all += uppercase_letters
if lower:
all += lower_letters
if nums:
all += digits
if syms:
all += symbols
lol can't you import string to get letters and numbers and symbol strings
ОтветитьThis helped so much. Thank you
ОтветитьBro instead of making variables for letters and symbols we can import string module...
and then...
set1 = string.ascii_letters
set2 = string.ascii_lowercase
set3 = string.ascii_uppercase
set4 = string.punctuation
set5 = string.digits
these includes every punctuation marks, lowercase and uppercase letter and digits
I have some notes on this.
first: you shouldn't use (random) module for security purposes. as they have mentioned in the documentation it uses pseudo-random generators which isn't safe instead use (secrets) module that is much safer.
second: instead of writing all letters and digits and special characters manually we have (string) module which provide :
string.ascii_lowercase
string.ascii_uppercase
string.punctuation
string.digits
This is my script for generating passwords it's just a cleaner version of the one you made:
import string
import secrets
def generate(length=25, lower=True, upper=True, digits=True, punctuation=True):
char_set = ''
if lower: char_set += string.ascii_lowercase
if upper: char_set += string.ascii_uppercase
if digits: char_set += string.digits
if punctuation: char_set += string.punctuation
return ''.join([secrets.choice(char_set) for i in range(length)])
if _name_ == "__main__":
print(generate())
I really appreciate your effort, i found your channel recently and you helped me alot, keep the good work.
can you make a tutorial converting hash160 hex to base58? thankyou
ОтветитьHey NeuralNine, what happened to the other ten videos in this Hacking Projects playlist? I was just working thru one of them yesterday evening! Now it looks like only the PW Generator and Exe Conversion videos are still up.
ОтветитьNice idea ... I actually had made one before ... But when I saw this video I thought I could upgrade that ... And just upgraded it .. Now it generates a password ., Asks if I wanna save it and if I wanna ... It saves into my passwords.db file which I created using sqlite3 ..
ОтветитьIs this possible for Visual Studio Code, but obviously in Python language?
ОтветитьMy solution:
import random
import string
letters = string.ascii_letters
digits = string.digits
symbols = string.punctuation
all_chars = letters + digits + symbols
length, amount = 20, 10
for x in range(1, amount + 1):
password = ''.join(random.sample(all_chars, length))
print(f'{x}º: {password}')
Great activity to train knowledge. Congratulations for your job!
ОтветитьI just want to mention that you shouldn't use the random module in a security relevant context. A better option is the secrets module or os.urandom()
ОтветитьIs there any particular reason you seem to be doing this the hard way instead of just using string.ascii_letters and string.digits?
Ответить