diff options
Diffstat (limited to 'passlib/hosts.py')
-rw-r--r-- | passlib/hosts.py | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/passlib/hosts.py b/passlib/hosts.py index 2594296..f6eb007 100644 --- a/passlib/hosts.py +++ b/passlib/hosts.py @@ -1,16 +1,16 @@ """passlib.hosts""" -#========================================================= -#imports -#========================================================= -#core +#============================================================================= +# imports +#============================================================================= +# core import sys from warnings import warn -#pkg +# pkg from passlib.context import LazyCryptContext from passlib.exc import PasslibRuntimeWarning from passlib.registry import get_crypt_handler from passlib.utils import has_crypt, unix_crypt_schemes -#local +# local __all__ = [ "linux_context", "linux2_context", "openbsd_context", @@ -19,9 +19,9 @@ __all__ = [ "host_context", ] -#========================================================= +#============================================================================= # linux support -#========================================================= +#============================================================================= # known platform names - linux2 @@ -31,11 +31,11 @@ linux_context = linux2_context = LazyCryptContext( deprecated = [ "des_crypt" ], ) -#========================================================= +#============================================================================= # bsd support -#========================================================= +#============================================================================= -#known platform names - +# known platform names - # freebsd2 # freebsd3 # freebsd4 @@ -45,7 +45,7 @@ linux_context = linux2_context = LazyCryptContext( # # netbsd1 -#referencing source via -http://fxr.googlebit.com +# referencing source via -http://fxr.googlebit.com # freebsd 6,7,8 - des, md5, bcrypt, bsd_nthash # netbsd - des, ext, md5, bcrypt, sha1 # openbsd - des, ext, md5, bcrypt @@ -62,9 +62,9 @@ netbsd_context = LazyCryptContext(["bcrypt", "sha1_crypt", "md5_crypt", # XXX: include darwin in this list? it's got a BSD crypt variant, # but that's not what it uses for user passwords. -#========================================================= -#current host -#========================================================= +#============================================================================= +# current host +#============================================================================= if has_crypt: # NOTE: this is basically mimicing the output of os crypt(), # except that it uses passlib's (usually stronger) defaults settings, @@ -89,27 +89,27 @@ if has_crypt: host_context = LazyCryptContext(_iter_os_crypt_schemes()) -#========================================================= -#other platforms -#========================================================= - -#known platform strings - -#aix3 -#aix4 -#atheos -#beos5 -#darwin -#generic -#hp-ux11 -#irix5 -#irix6 -#mac -#next3 -#os2emx -#riscos -#sunos5 -#unixware7 - -#========================================================= -#eof -#========================================================= +#============================================================================= +# other platforms +#============================================================================= + +# known platform strings - +# aix3 +# aix4 +# atheos +# beos5 +# darwin +# generic +# hp-ux11 +# irix5 +# irix6 +# mac +# next3 +# os2emx +# riscos +# sunos5 +# unixware7 + +#============================================================================= +# eof +#============================================================================= |