Skip to main content

A pbkdf2 implementation for python using ctypes.

This module implements pbkdf2 for Python using C libraries available on the system (OpenSSL-1+ or CommonCrypto).

Note: This module is intended as a plugin replacement of pbkdf2.py (https://github.com/mitsuhiko/python-pbkdf2) by Armin Ronacher. There is no need to compile it so it should be usable on any system where OpenSSL 1.0.0+ or CommonCrypto (OS X) is installed.

Why?

The above stlib based implementation, although excellent, was worsening web2py (http://web2py.com) performance much more than needed for doing just password hashing. After pondering different options, it was considered that there would have been a good chance that a system with python shipping hashlib module, could also have OpenSSL installed for dependency reasons. The result is that using this module PKCS5 PBKDF2 hashing can be more than 20x times faster than using Armin’s stdlib implementation.

Copyright :copyright: 2013: Michele Comitini License LGPLv3

CHANGELOG

[2018-06-15]
  • v0.99.5: Fix PyPi missing release files.

[2013-09-24]
  • v0.99.4: better support for python2.5. Comply to PATH on Windows. Better OS detection on OS X.

[2013-08-17]
  • v0.99.3: fixed main(). Prepended “_” to internal functions.

  • v0.99.2: added support for python3

[2013-08-16]
  • preparing 0.99.1 to fix problems with pypi

[2013-08-14]
  • added tests.py and prepared for distutils.

[2013-08-08]
  • Update README.md

[2013-08-05]

[2013-07-31]
  • fixed OS X compatibility, should work also on iOS. Added arg type checks and conversions.

[2013-07-29]
  • added support for common crypto hence hopefully OS X

[2013-07-28]
  • missing () around exceptions

  • pep8

  • now uses ctypes magic to find library

  • added module

  • added module

  • Update README.md

  • Initial commit

Release files for pbkdf2-ctypes 0.99.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pbkdf2-ctypes 0.99.5
File Size Uploaded
pbkdf2-ctypes-0.99.5.tar.gz 7.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pbkdf2-ctypes 0.99.5
File Interpreter ABI Platform
pbkdf2_ctypes-0.99.5-py3-none-any.whl Python 3 none any Details
pbkdf2_ctypes-0.99.5-py2-none-any.whl Python 2 none any Details

Total release size:16.1 kB

Release files / pbkdf2-ctypes-0.99.5.tar.gz

Download URL pbkdf2-ctypes-0.99.5.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
888a1d5fb2e04094a3f886ad970a58e6db96d30dbb41d295347b41fb1033a7d3
BLAKE2b-256 checksum
How to use checksums
c51296a5011cdc20922f6b9c68e52d0ab10c85d08058d3c4e45f5787c2c4e379
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pbkdf2_ctypes-0.99.5-py3-none-any.whl

Download URL pbkdf2_ctypes-0.99.5-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f60c0e98d29fcaf717c44a5bcd91db21710d2f07767f450b020770f537b79f9
BLAKE2b-256 checksum
How to use checksums
029db92e5aa97d66d8f469b67b14d83c1228f07797156fdb7dddcac03bf1d67c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pbkdf2_ctypes-0.99.5-py2-none-any.whl

Download URL pbkdf2_ctypes-0.99.5-py2-none-any.whl
Size 4.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
9824555ccba1add5cc7fac22c97cf5b5544e3571f0811021ca7a1cacd2303516
BLAKE2b-256 checksum
How to use checksums
379d907de45868f157425ec6b8f67fcd5b137aa5bac95a0f9b906b7b490cca62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.99.5 This release

3 release files

0.99.4

0.99.3

1 release file

0.99.2

1 release file

0.99.1

1 release file

0.99

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page