Hello, this is Snakeseed. Today, I made an automatic password generator using Python's built-in variable "chr", so I will share it. It's difficult to use other than the alphabet password, but it's still interesting so I made it. Is it hard to remember? That's okay ...
I will generate various passwords.
This article, in fact, is making something called "practicality". Practicality ★★ ...... I wonder where to use it ⭐️ ★ ..... Can be used ⭐️⭐️ ...... Can be used anywhere There are three stages.
Python 3 from Paiza.IO.
I asked @shiracamus to tell me the random `` `choice``` and corrected it.
import random
l = range(11936, 12000)
n = 20 #Password length
x = ''.join(chr(random.choice(l)) for _ in range(n))
print(x)
Practicality ★★ This is not a Japanese kanji in the first place, so it is difficult for other people to remember it, not to mention those who can only speak Japanese.
import random
l = range(96, 123)
n = 20 #Password length
x = ''.join(chr(random.choice(l)) for _ in range(n))
print(x)
Practicality ⭐️ ★
Password example
جأؠب؉؊ׯ؊פײزسجـؐװײا
⇲⇷∁⇖⇶∖∇⇯∞∂∉⇻⇩∙√∑⇟∠⇤⇕
As you can see, it's anything. Hangul and Kanji are not included (should be).
import random
l = range(1000, 10000)
n = 20 #Password length
x = ''.join(chr(random.choice(l)) for _ in range(n))
print(x)
Practicality ★★
Password example
䭖 䭏 䬹 䭐 䬪 䬩 䬯 䬤 䭋 䬼 䭆 䭑 䭝 䭛 䭋 䬴 䭘 䬺 䬏 䬕
It also seems to make sense. (Google Translate)
웕욫웕욹욤웁욷웉욝웢욵욵욣욎욤욘욵욑웚웥
Mostly kanji. (Because there are many characters) As you can see, it's anything. * Hangul and Kanji are also included. *
import random
l = range(1000, 70000)
n = 20 #Password length
x = ''.join(chr(random.choice(l)) for _ in range(n))
print(x)
Practicality ★★
Qiita
-Unicode version character code table -[python] Create a list of various character types
Posted on Saturday, December 26, 2020 at 19:22
Recommended Posts