pyphash 0.0.1 - 2 minutes read


pyphash · PyPI

pyphash is a Python extension module that wraps the C library function , which performs passphrase hashing, in the simplest possible fashion. It exposes one function, named , which works just like the C except that it is thread safe:

You have to create settings strings yourself.

This module is not intended to be used by programs that actually need to hash passphrases—if it were, it would at least also provide access to . Rather, its purpose is to be a test case for the packaging toolchain for C extension modules. Linux distributions are changing how they provide the shared library that implements , and Python packaging must adapt. See manylinux bug #305 for the gory details.

For thread safety, the module actually uses the reentrant variant of called , and looks for it in rather than . It will fail to compile if this function or this header is not available.

Source: Pypi.org

Powered by NewsAPI.org

Keywords:

Python Package IndexPython (programming language)Filename extensionModular programmingC standard libraryLibrary (computing)PassphraseHash functionThread safetySettings (Windows)String (computer science)Modular programmingComputer programMicrosoft AccessTest casePackage managerToolchainPlug-in (computing)Modular programmingLinuxLibrary (computing)ImplementationPython (programming language)Package managerSoftware bugThread safetyModular programmingReentrancy (computing)SubroutineInclude directive