Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Буров Антон Алексеевич
Task_3
Commits
53670eb6
Commit
53670eb6
authored
4 years ago
by
Буров Антон Алексеевич
Browse files
Options
Download
Email Patches
Plain Diff
Add new file
parent
60a1a5ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Password
+21
-0
Password
with
21 additions
and
0 deletions
+21
-0
Password
0 → 100644
View file @
53670eb6
# A=36 P=10^-4 V=15pas/min T=2week
# S*=(V*T)/P=(15*60*24*7*2)/10^-4=302400/10^-4=3024*10^6
# L=Ln(S)/Ln(A)=Ln(3024*10^6)/Ln(36)=6
# A^L=36^6=2176782336
# S*<=A^L
import random
array=[]
password=[]
i=0
while i<10:
array.append(i)
i+=1
alpha = 'a'
for i in range(0, 26):
array.append(alpha)
alpha = chr(ord(alpha) + 1)
while len(password)<6:
password.append(random.choice(array))
print(password)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help