Hello everybody. For this first article, I will explain how I go about finding a good password to use on my accounts. This step is often overlooked and it would be a shame to have your account hacked because of a weak password. Even if you use a 2FA
1 – Use a password generator
It may be stupid to say like that, but it is indeed a solution. And see this as an opportunity to get into programming if you haven’t already. A small script in python language which takes 5 minutes to be done and which will allow you to generate a password easily.
#made by SeenKid
import random
import string
import os
import time
randomletters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@_-.,=)(/&%ç*"+$'
os.system("color a")
def gen_pass(length):
letters = randomletters
result_str = ''.join(random.choice(letters) for i in range(length))
return result_str
number = input("\n\nHow much passwords do you want to generate ? : ")
try: number = int(number)
except:
print("\nPlease, but a number : ")
else:
file = "pass.txt"
file = open("pass.txt", "w")
for i in range(number):
result = gen_pass(24)
result2 = gen_pass(6)
result3 = gen_pass(27)
file.write(f"\n{result}{result2}{result3}")
file.close()
print("\n\nPasswords set on \"pass.txt\"")
time.sleep(100)
2 – Choose a password you can remember
Choose a password that speaks to you, that makes sense to you, make a sentence with capital letters, punctuation and turn it into a password.
For example :
A sentence: I love pizzas
the password: Il0V3.p1zZa5.