Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(19)  |  Call(15)  |  Derive(0)  |  Import(4)

        def is_encrypted(pw):
    for id, prefix, scheme in _schemes:
        lp = len(prefix)
        if pw[:lp] == prefix:
            return 1
    return 0
        


src/p/r/Products.PluggableAuthService-1.10.0/Products/PluggableAuthService/plugins/ZODBUserManager.py   Products.PluggableAuthService(Download)
            return None
 
        if AuthEncoding.is_encrypted( reference ):
            if AuthEncoding.pw_validate( reference, password ):
                return userid, login
        as is and not encrypted again.
        """
        if AuthEncoding.is_encrypted( password ):
            return password
        return AuthEncoding.pw_encrypt( password )

src/a/c/AccessControl-3.0.8/src/AccessControl/userfolder.py   AccessControl(Download)
    def _isPasswordEncrypted(self, pw):
        return AuthEncoding.is_encrypted(pw)
 
    def _encryptPassword(self, pw):
        return AuthEncoding.pw_encrypt(pw, 'SSHA')

src/p/r/Products.PlonePAS-5.0/Products/PlonePAS/plugins/user.py   Products.PlonePAS(Download)
            raise KeyError('Duplicate login name: %s' % login_name)
 
        if not AuthEncoding.is_encrypted(password):
            password = AuthEncoding.pw_encrypt(password)
        self._user_passwords[user_id] = password

src/i/l/ilrt.contentmigrator-1.11/ilrt/contentmigrator/ContentMigrator/ContentExporter.py   ilrt.contentmigrator(Download)
                except:
                    password = u.getPassword()
                    if password and not AuthEncoding.is_encrypted(password):
                        password = AuthEncoding.pw_encrypt(password)
                if not password:

src/p/r/Products.PlonePAS-HEAD/Products/PlonePAS/plugins/user.py   Products.PlonePAS(Download)
            raise KeyError('Duplicate login name: %s' % login_name)
 
        if not AuthEncoding.is_encrypted(password):
            password = AuthEncoding.pw_encrypt(password)
        self._user_passwords[user_id] = password

src/c/o/collective.emaillogin-1.3/collective/emaillogin/__init__.py   collective.emaillogin(Download)
        if reference is None:
            return None
        if AuthEncoding.is_encrypted(reference):
            if AuthEncoding.pw_validate(reference, password):
                return userid, login

src/i/s/IssueTrackerProduct-0.14.2/IssueTrackerProduct/IssueTracker.py   IssueTrackerProduct(Download)
        userfolder = self.unrestrictedTraverse(path)
        user = userfolder.data[issueuser.getUserName()]
        if AuthEncoding.is_encrypted(user._getPassword()):
            if not AuthEncoding.pw_validate(user._getPassword(), old):
                SubmitError['old'] = "Incorrect"

src/i/s/IssueTrackerProduct-HEAD/IssueTrackerProduct/IssueTracker.py   IssueTrackerProduct(Download)
        userfolder = self.unrestrictedTraverse(path)
        user = userfolder.data[issueuser.getUserName()]
        if AuthEncoding.is_encrypted(user._getPassword()):
            if not AuthEncoding.pw_validate(user._getPassword(), old):
                SubmitError['old'] = "Incorrect"

src/p/r/Products.PluggableAuthService-1.10.0/Products/PluggableAuthService/Extensions/upgrade.py   Products.PluggableAuthService(Download)
def _migrate_user( pas, login, password, roles ):
 
    from AccessControl import AuthEncoding
 
    if AuthEncoding.is_encrypted( password ):

src/p/r/Products.remember-1.9.3/Products/remember/cmfmember/migrator.py   Products.remember(Download)
 
from Acquisition import aq_base
from AccessControl.AuthEncoding import is_encrypted
 
from Products.CMFCore.utils import getToolByName
        # password wasn't encrypted
        old_pw = self.old.getPassword()
        if is_encrypted(old_pw):
            field = self.new.getField('password')
            new_pw = "zauth:%s" % old_pw

  1 | 2  Next