Files
CyberPanel/plogical/randomPassword.pyc

9 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-12-14 06:56:27 -05:00
<03>
2018-03-02 18:13:26 +05:00
<EFBFBD>T2Zc@sTddlmZddlmZidd6dd6dd6Zd d
2017-12-14 06:56:27 -05:00
<00>Zd <00>Zd S( i<><69><EFBFBD><EFBFBD>(turandom(tchoicetabcdefghijklmnopqrstuvwxyztsmallt
0123456789tnumstABCDEFGHIJKLMNOPQRSTUVWXYZtbigicCs<>g}xmt|<00>|kruttj<00><00>}td<00>}|t|kr t|t|<19>rbq qr|j|<00>q q Wdj|<00>S(sFunction to generate a passwordit(tlenRtchar_settkeysRtcheck_prev_chartappendtjoin(tlengthtpasswordtkeyta_char((s-/usr/local/CyberCP/plogical/randomPassword.pyt generate_pass
s cCsBt|<00>}|dkrtS||d}||kr:tStSdS(sdFunction to ensure that there are no consecutive
UPPERCASE/lowercase/numbers/special-characters.iiN(R tFalsetTrue(Rtcurrent_char_settindext prev_char((s-/usr/local/CyberCP/plogical/randomPassword.pyR s   N(tosRtrandomRR
RR (((s-/usr/local/CyberCP/plogical/randomPassword.pyt<module>s