Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49505

Re: password protect file

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Peter Pearson <ppearson@nowhere.invalid>
Newsgroups comp.lang.python
Subject Re: password protect file
Date 30 Jun 2013 17:56:02 GMT
Lines 21
Message-ID <b3b9phF5mn4U1@mid.individual.net> (permalink)
References <c169b091-4585-4fa1-b440-76017d961693@googlegroups.com>
X-Trace individual.net VRE9Fq0Q4yL9ab+gnRG60AHOAH0h8s9C3KpI/yirpBWjdUO5AK
Cancel-Lock sha1:wiLa0XVtN9u3yVWFTwGmBxNKi5c=
User-Agent slrn/pre1.0.0-18 (Linux)
Xref csiph.com comp.lang.python:49505

Show key headers only | View raw


On Sat, 29 Jun 2013 10:28:47 -0700 (PDT), gmsiders@gmail.com wrote:
> I was wondering if there was a couple of words or things i
> could add to the top of my python script to password
> protect it so that it asks user for the password and then
> after three tries it locks them out or says "access
> denied" and closes/ends the script but if they get it
> wright it proceeds on to the next line of the script total
> noob here any help appreciated

You can do this with just a couple lines of Python (and I'm
sure this group's experts can show you how better than I),
but more importantly, are you aware that doing this doesn't
actually make anything secure, unless you also take precautions
that are much more complicated than a few lines of Python?

If you frankly state that you're only after a kid-sister
level of security, readers might feel less conflicted about
helping.

-- 
To email me, substitute nowhere->spamcop, invalid->net.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

password protect file gmsiders@gmail.com - 2013-06-29 10:28 -0700
  Re: password protect file Peter Pearson <ppearson@nowhere.invalid> - 2013-06-30 17:56 +0000

csiph-web