Re: using regex for password validation

2020-12-23 Thread Chris Angelico
On Thu, Dec 24, 2020 at 12:56 PM dn via Python-list wrote: > > On 24/12/2020 12:25, Chris Angelico wrote: > > On Thu, Dec 24, 2020 at 9:42 AM dn via Python-list > > wrote: > >> Hang-on though, look at how much 'work' is involved, compared with a > >> single line of RegEx! Why go to such bother? T

Re: using regex for password validation

2020-12-23 Thread dn via Python-list
On 24/12/2020 12:25, Chris Angelico wrote: On Thu, Dec 24, 2020 at 9:42 AM dn via Python-list wrote: Hang-on though, look at how much 'work' is involved, compared with a single line of RegEx! Why go to such bother? There's several reasons. Good question! Look at this alternative: def validat

Re: using regex for password validation

2020-12-23 Thread dn via Python-list
On 24/12/2020 12:20, 2qdxy4rzwzuui...@potatochowder.com wrote: On 2020-12-24 at 11:41:15 +1300, dn via Python-list wrote: On 24/12/2020 06:03, Sadaka Technology wrote: hello guys, I have this pattern for password validation (regex): [...] Is it my imagination, or does a password in which

Re: using regex for password validation

2020-12-23 Thread Chris Angelico
On Thu, Dec 24, 2020 at 10:21 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > If you're going to wander out of ASCII, then don't forget to address > Unicode confusables. Nothing is more embarrassing than scribbling your > complicated password on a sticky note and then not being able to tell > the

Re: using regex for password validation

2020-12-23 Thread Chris Angelico
On Thu, Dec 24, 2020 at 9:42 AM dn via Python-list wrote: > Hang-on though, look at how much 'work' is involved, compared with a > single line of RegEx! Why go to such bother? There's several reasons. Good question! Look at this alternative: def validate_password(attempt): return len(attempt

Re: using regex for password validation

2020-12-23 Thread 2QdxY4RzWzUUiLuE
On 2020-12-24 at 11:41:15 +1300, dn via Python-list wrote: > On 24/12/2020 06:03, Sadaka Technology wrote: > > hello guys, > > > > I have this pattern for password validation (regex): [...] > > passwordpattern = > > "^(?=.[a-z])(?=.[A-Z])(?=.\d)(?=.[@$])[A-Za-z\d@$!%?&]{8,}.$" > > > > my onl

Re: using regex for password validation

2020-12-23 Thread dn via Python-list
On 24/12/2020 06:03, Sadaka Technology wrote: hello guys, I have this pattern for password validation (regex): I want these rules to be applied: Minimum 8 characters. The alphabets must be between [a-z] At least one alphabet should be of Upper Case [A-Z] At least 1 number or digit between [0-9

RE: pexpect with kadmin

2020-12-23 Thread Joseph L. Casale
> If you have windows 10 can you use Windows Subsystem for Linux (WSL) > to install one of the Linux distros and use that? Interesting idea, sadly I am too far past the deadline on this to go through the red tape needed to get that in place. Thanks, jlc -- https://mail.python.org/mailman/listi

Re: using regex for password validation

2020-12-23 Thread Chris Angelico
On Thu, Dec 24, 2020 at 4:09 AM Sadaka Technology wrote: > > hello guys, > > I have this pattern for password validation (regex): > > I want these rules to be applied: > > Minimum 8 characters. > The alphabets must be between [a-z] > At least one alphabet should be of Upper Case [A-Z] > At least 1

Re: using regex for password validation

2020-12-23 Thread Grant Edwards
On 2020-12-23, Mats Wichmann wrote: > Telling someone the password they tried to propose doesn't meet the > policy isn't performance sensitive, since it is a human-interactive > process, so it's okay to be a little slower and a lot clearer (that's > not even a Python issue!) You're far, far b

Re: using regex for password validation

2020-12-23 Thread MRAB
On 2020-12-23 17:03, Sadaka Technology wrote: hello guys, I have this pattern for password validation (regex): I want these rules to be applied: Minimum 8 characters. The alphabets must be between [a-z] At least one alphabet should be of Upper Case [A-Z] At least 1 number or digit between [0-9

Re: using regex for password validation

2020-12-23 Thread Mats Wichmann
On 12/23/20 10:03 AM, Sadaka Technology wrote: hello guys, I have this pattern for password validation (regex): I want these rules to be applied: Minimum 8 characters. The alphabets must be between [a-z] At least one alphabet should be of Upper Case [A-Z] At least 1 number or digit between [0-

using regex for password validation

2020-12-23 Thread Sadaka Technology
hello guys, I have this pattern for password validation (regex): I want these rules to be applied: Minimum 8 characters. The alphabets must be between [a-z] At least one alphabet should be of Upper Case [A-Z] At least 1 number or digit between [0-9]. At least 1 character from [ _ or @ or $ ]. a

Re: Pickling issue.

2020-12-23 Thread vincent . vandevyvre
On 22/12/20 01:57, Bob Gailer wrote: > > > On Mon, Dec 21, 2020, 3:03 PM Vincent Vande Vyvre > wrote: > > Hi, > > I've an object that I want to serialise with pickle. > When I reload the object the attributes of this object are correctly > fixed except one of these. > > This a

Re: pexpect with kadmin

2020-12-23 Thread Barry Scott
> On 23 Dec 2020, at 04:04, Joseph L. Casale wrote: > > Anyone ever used pexpect with tooling like kadmin and have > insight into how to manage interacting with it? > > After setting up debug logging, I was able to adjust the expect > usage to get the input and output logs to at least appear

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-23 Thread Chris Green
Mirko wrote: > On 22.12.2020 at 20:24 Chris Green wrote: > > > Yes, I do have the Python source. The only thing I don't have the > > source for is a .so file and that's why I can't simply migrate the > > program(s) from Python 2 to Python 3. > > > > If it's just one .so and that library is com