Skip to main content

Password encoding and checking utilities

Project description

Password Manager

This package provides a password manager mechanism. Password manager is an utility object that can encode and check encoded passwords. Beyond the generic interface, this package also provides four implementations:

  • PlainTextPasswordManager - the most simple and the less secure one. It does not do any password encoding and simply checks password by string equality. It’s useful in tests or as a base class for more secure implementations.

  • MD5PasswordManager - a password manager that uses MD5 algorithm to encode passwords. It adds salt to the encoded password, but the salt is not used for encoding the password itself, so the use of salt in it is purely cosmetical. It’s generally weak against dictionary attacks.

  • SHA1PasswordManager - a password manager that uses SHA1 algorithm to encode passwords. It has the same salt weakness as the MD5PasswordManager.

  • SSHAPasswordManager - the most secure password manager that is strong against dictionary attacks. It’s basically SHA1-encoding password manager which also incorporates a salt into the password when encoding it. This password manager is compatible with passwords used in LDAP databases.

It is strongly recommended to use SSHAPasswordManager, as it’s the most secure.

Usage

It’s very easy to use password managers. The zope.password.interfaces.IPasswordManager interface defines only two methods:

def encodePassword(password):
    """Return encoded data for the given password"""

def checkPassword(encoded_password, password):
    """Return whether the given encoded data coincide with the given password"""

The implementations mentioned above are in the zope.password.password module.

CHANGES

3.5.0 (2009-03-06)

First release. This package was splitted off from zope.app.authentication to separate password manager functionality that is greatly re-usable without any bit of zope.app.authentication and to reduce its dependencies.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zope.password-3.5.0.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file zope.password-3.5.0.tar.gz.

File metadata

  • Download URL: zope.password-3.5.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zope.password-3.5.0.tar.gz
Algorithm Hash digest
SHA256 7925a154b5aba10add6f795c3a6c0a63dc2c1d682e342d48f60a18014ba3e8c0
MD5 c0b926aa0da2494b9e03cd5e01673443
BLAKE2b-256 b138bdcf4832b71c54342f7f133ead511121d978f1e660511fd22d6823202a03

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page