VirtualMailManager/password.py
branchv0.6.x
changeset 320 011066435e6f
parent 316 31d8931dc535
child 366 d6573da35b5f
equal deleted inserted replaced
319:f4956b4ceba1 320:011066435e6f
     1 # -*- coding: UTF-8 -*-
     1 # -*- coding: UTF-8 -*-
     2 # Copyright (c) 2010, Pascal Volk
     2 # Copyright (c) 2010, Pascal Volk
     3 # See COPYING for distribution information.
     3 # See COPYING for distribution information.
     4 
       
     5 """
     4 """
     6     VirtualMailManager.password
     5     VirtualMailManager.password
       
     6     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
     7 
     7 
     8     VirtualMailManager's password module to generate password hashes from
     8     VirtualMailManager's password module to generate password hashes from
     9     passwords or random passwords. This module provides following
     9     passwords or random passwords. This module provides following
    10     functions:
    10     functions:
    11 
    11 
    22     import hashlib
    22     import hashlib
    23 except ImportError:
    23 except ImportError:
    24     from VirtualMailManager.pycompat import hashlib
    24     from VirtualMailManager.pycompat import hashlib
    25 
    25 
    26 from VirtualMailManager import ENCODING
    26 from VirtualMailManager import ENCODING
    27 from VirtualMailManager.EmailAddress import EmailAddress
    27 from VirtualMailManager.emailaddress import EmailAddress
    28 from VirtualMailManager.common import get_unicode, version_str
    28 from VirtualMailManager.common import get_unicode, version_str
    29 from VirtualMailManager.constants import VMM_ERROR
    29 from VirtualMailManager.constants import VMM_ERROR
    30 from VirtualMailManager.errors import VMMError
    30 from VirtualMailManager.errors import VMMError
    31 
    31 
    32 COMPAT = hasattr(hashlib, 'compat')
    32 COMPAT = hasattr(hashlib, 'compat')