changeset 140 | ffac064bd728 |
parent 138 | 617f27715b01 |
child 143 | 16542519a5a8 |
--- a/VirtualMailManager/VirtualMailManager.py Wed Sep 02 20:30:16 2009 +0000 +++ b/VirtualMailManager/VirtualMailManager.py Thu Sep 03 05:33:52 2009 +0000 @@ -370,10 +370,7 @@ if self.__scheme == 'CRYPT': salt = '%s%s' % (choice(SALTCHARS), choice(SALTCHARS)) elif self.__scheme in ['MD5', 'MD5-CRYPT']: - salt = '$1$' - for i in range(8): - salt += choice(SALTCHARS) - salt += '$' + salt = '$1$%s$' % ''.join([choice(SALTCHARS) for x in xrange(8)]) return salt def __pwCrypt(self, password):