import ports/security/py-scrypt, ok bket@

This is a set of Python bindings for the scrypt key derivation function.

Scrypt is useful when encrypting passwords as it is possible to specify a
*minimum* amount of time to use when encrypting and decrypting. If, for
example, a password takes 0.05 seconds to verify, a user won't notice
the slight delay when signing in, but doing a brute force search of
several billion passwords will take a considerable amount of time. This
is in contrast to more traditional hash functions such as MD5 or the SHA
family which can be implemented extremely fast on cheap hardware.
This commit is contained in:
sthen 2019-11-23 15:10:06 +00:00
parent 64a42d90b8
commit 1fcd1bab33
4 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# $OpenBSD: Makefile,v 1.1.1.1 2019/11/23 15:10:06 sthen Exp $
COMMENT = support for the scrypt key derivation function
MODPY_EGG_VERSION = 0.8.13
DISTNAME = scrypt-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = security
HOMEPAGE = http://bitbucket.org/mhallin/py-scrypt
# BSD
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
FLAVORS = python3
FLAVOR ?=
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (scrypt-0.8.13.tar.gz) = E3exrcmMQVJpS/XX6TtBqdLpBgr2m3R8+tjJOsQm+eo=
SIZE (scrypt-0.8.13.tar.gz) = 53606

View File

@ -0,0 +1,9 @@
This is a set of Python bindings for the scrypt key derivation function.
Scrypt is useful when encrypting passwords as it is possible to specify a
*minimum* amount of time to use when encrypting and decrypting. If, for
example, a password takes 0.05 seconds to verify, a user won't notice
the slight delay when signing in, but doing a brute force search of
several billion passwords will take a considerable amount of time. This
is in contrast to more traditional hash functions such as MD5 or the SHA
family which can be implemented extremely fast on cheap hardware.

View File

@ -0,0 +1,13 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/11/23 15:10:06 sthen Exp $
@so lib/python${MODPY_VERSION}/site-packages/_scrypt.so
lib/python${MODPY_VERSION}/site-packages/scrypt/
lib/python${MODPY_VERSION}/site-packages/scrypt-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/scrypt-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/scrypt-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/scrypt-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/scrypt-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/scrypt/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/scrypt/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/scrypt/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/scrypt/${MODPY_PYCACHE}scrypt.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/scrypt/scrypt.py