Changeset 1036


Ignore:
Timestamp:
09/07/06 16:14:33 (8 years ago)
Author:
mglb1
Message:

Improve password generation so that passwords are more readable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ccsd/trunk/crcnetd/_utils/ccsd_common.py

    r997 r1036  
    486486    """Creates a new password of the specified length 
    487487 
    488     The password is created of characters returned by the rand.randint function 
    489     with certain easily confused characters removed. 
     488    The password is created of characters from the set [A-Za-z0-9_] as chosen 
     489    by the rand.randint function, with some easily confused characters removed. 
    490490    """ 
    491491    import random 
    492492    out = "" 
    493     exclude = re.compile("['`0Ol1:;]") 
     493    exclude = re.compile("[^\w]|[0Ol1_]") 
    494494     
    495495    len = 0 
Note: See TracChangeset for help on using the changeset viewer.