orget it, nvm
iberian Huskies on the
I've done a glance over on your site via a VPN

  Main Index Search Posts Who's Online Log in LOG
IN

 



jeff
Surgeon / Chief Medical Officer


Feb 22, 2014, 1:23 AM

Post #1 of 15 (9784 views)
Shortcut
$ECURE PA$$W0RD GENERATOR Can't Post

FrownpFrowntFrownFrownFrownFrownFrownFrownFrownFrownFrownFrownFrownFrownFrown
Later..jeff...Cool...
Medical Doctor & Retired TV Technician


jeff
Surgeon / Chief Medical Officer


Feb 22, 2014, 1:33 AM

Post #2 of 15 (9783 views)
Shortcut
Re: [jeff] $ECURE PA$$W0RD GENERATOR [In reply to] Can't Post

import string 
import random

password = []
pass_length = int(raw_input('password length: '))
chars = string.ascii_letters + string.digits + string.punctuation

for x in range(pass_length):
getchar = random.choice(chars)
password.append(getchar)
print ''.join(map(str, password))

Later..jeff...Cool...
Medical Doctor & Retired TV Technician


Tyler Gibney
Veteran / Veteran Controller / Moderator


Feb 22, 2014, 10:19 PM

Post #3 of 15 (9778 views)
Shortcut
Re: [jeff] $ECURE PA$$W0RD GENERATOR [In reply to] Can't Post

not if you run it on windows https://bugzilla.mozilla.org/show_bug.cgi?id=614701 Frown


jeff
Surgeon / Chief Medical Officer


Feb 22, 2014, 11:02 PM

Post #4 of 15 (9776 views)
Shortcut
Re: [TazG] $ECURE PA$$W0RD GENERATOR [In reply to] Can't Post

it's secure enough
Later..jeff...Cool...
Medical Doctor & Retired TV Technician


Tyler Gibney
Veteran / Veteran Controller / Moderator


Feb 22, 2014, 11:04 PM

Post #5 of 15 (9774 views)
Shortcut
Re: [jeff] $ECURE PA$$W0RD GENERATOR [In reply to] Can't Post

thats what hitler thought


Tyler Gibney
Veteran / Veteran Controller / Moderator


Feb 23, 2014, 12:13 AM

Post #6 of 15 (9770 views)
Shortcut
Re: [jeff] $ECURE PA$$W0RD GENERATOR [In reply to] Can't Post

import os, struct, math 


pass_length = int(raw_input("password length: "))

print (
bytearray(
int(math.floor(byte_int / 255. * 93 + 33))
for byte_int in
struct.unpack("<" + "B" * pass_length,
os.urandom(pass_length))
).decode("ascii", "strict")
)
Smug


jeff
Surgeon / Chief Medical Officer


Feb 23, 2014, 12:22 AM

Post #7 of 15 (9768 views)
Shortcut
Re: [TazG] $ECURE PA$$W0RD GENERATOR [In reply to] Can't Post

check out python-forums

they let me POST Smug
Later..jeff...Cool...
Medical Doctor & Retired TV Technician


Tyler Gibney
Veteran / Veteran Controller / Moderator


Feb 23, 2014, 1:24 AM

Post #8 of 15 (9765 views)
Shortcut
Re: [jeff] $ECURE PA$$W0RD GENERATOR [In reply to] Can't Post


In Reply To
I've rewrote the script.


"i dont POST tazg's code and take credit for it anymore" ~ jeff, 2 days ago


Tyler Gibney
Veteran / Veteran Controller / Moderator


Feb 23, 2014, 1:38 AM

Post #9 of 15 (9764 views)
Shortcut
Re: [TazG] $ECURE PA$$W0RD GENERATOR [In reply to] Can't Post


In Reply To
That's the spirit!


the rule was 1 line/statement, not least number of characters

also the reason for writing the full string was to avoid concatenation for efficiency

you would know these things if you wrote it yourself you bloody liar

and this beats mek's attempt by 14 characters:
print(lambda r,s:''.join(r.choice(s.ascii_letters+s.digits+s.punctuation)for _ in range(input('password length: '))))(*map(__import__,("random","string"))) 
owned

(TazG fucked around with this message on Feb 23, 2014, 1:40 AM)


jeff
Surgeon / Chief Medical Officer


Feb 23, 2014, 4:04 AM

Post #10 of 15 (9761 views)
Shortcut
Re: [TazG] $ECURE PA$$W0RD GENERATOR [In reply to] Can't Post


In Reply To

In Reply To
That's the spirit!


the rule was 1 line/statement, not least number of characters

also the reason for writing the full string was to avoid concatenation for efficiency

you would know these things if you wrote it yourself you bloody liar

and this beats mek's attempt by 14 characters:
print(lambda r,s:''.join(r.choice(s.ascii_letters+s.digits+s.punctuation)for _ in range(input('password length: '))))(*map(__import__,("random","string"))) 
owned


meks a stupid dumbass mother[Expletive Deleted]er
Later..jeff...Cool...
Medical Doctor & Retired TV Technician


jeff
Surgeon / Chief Medical Officer


Feb 23, 2014, 5:49 AM

Post #11 of 15 (9758 views)
Shortcut
Re: [TazG] $ECURE PA$$W0RD GENERATOR [In reply to] Can't Post


In Reply To

In Reply To
I've rewrote the script.


"i dont POST tazg's code and take credit for it anymore" ~ jeff, 2 days ago


it's just like whole times huh

python-forums is a trip through memory lane

however unpleasant it may be

you will have enjoyed the ride

at the end
Later..jeff...Cool...
Medical Doctor & Retired TV Technician


Tyler Gibney
Veteran / Veteran Controller / Moderator


Feb 23, 2014, 3:42 PM

Post #12 of 15 (9753 views)
Shortcut
Re: [jeff] $ECURE PA$$W0RD GENERATOR [In reply to] Can't Post

your heinous/kind of gay


jeff
Surgeon / Chief Medical Officer


Feb 23, 2014, 5:25 PM

Post #13 of 15 (9748 views)
Shortcut
Re: [TazG] $ECURE PA$$W0RD GENERATOR [In reply to] Can't Post

http://www.youtube.com/watch?v=yvEYmBoDFrY
Later..jeff...Cool...
Medical Doctor & Retired TV Technician


Tyler Gibney
Veteran / Veteran Controller / Moderator


Feb 23, 2014, 7:04 PM

Post #14 of 15 (9746 views)
Shortcut
Re: [jeff] $ECURE PA$$W0RD GENERATOR [In reply to] Can't Post

what a poor contribution to the YouTube experience


jeff
Surgeon / Chief Medical Officer


Jan 16, 2018, 12:32 AM

Post #15 of 15 (4921 views)
Shortcut
Re: [Tyler Gibney] $ECURE PA$$W0RD GENERATOR [In reply to] Can't Post

AU CONTRAIRE MON CAPITĀN

4 likes!
Later..jeff...Cool...
Medical Doctor & Retired TV Technician

 
 


Search for (options) Free Games Forum Refugees