Current Path : /usr/lib/python2.7/dist-packages/landscape/lib/ |
Current File : //usr/lib/python2.7/dist-packages/landscape/lib/md5crypt.pyc |
ó ÍÿŠTc @ sg d Z d Z d Z d d l m Z d „ Z d „ Z d d „ Z e Z e d k rc e d d ƒ GHn d S( s4 md5crypt.py - Provides interoperable MD5-based crypt() function SYNOPSIS import md5crypt.py cryptedpassword = md5crypt.md5crypt(password, salt); DESCRIPTION unix_md5_crypt() provides a crypt()-compatible interface to the rather new MD5-based crypt() function found in modern operating systems. It's based on the implementation found on FreeBSD 2.2.[56]-RELEASE and contains the following license in it: "THE BEER-WARE LICENSE" (Revision 42): <phk@login.dknet.dk> wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp apache_md5_crypt() provides a function compatible with Apache's .htpasswd files. This was contributed by Bryan Hart <bryan@eai.com>. s $1$s@ ./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyziÿÿÿÿ( t md5c C sG d } x: | d d k rB | d } | t | d @} | d ?} q W| S( Nt i i i? i ( t ITOA64( t vt nt ret( ( s: /usr/lib/python2.7/dist-packages/landscape/lib/md5crypt.pyt to64. s c C s t | | d ƒ S( Ns $apr1$( t unix_md5_crypt( t pwt salt( ( s: /usr/lib/python2.7/dist-packages/landscape/lib/md5crypt.pyt apache_md5_crypt7 s c C s | d k r t } n | t | ƒ | k r>