From 61d6a9fd8a53758a0253e0c162082c45cb330bf4 Mon Sep 17 00:00:00 2001 From: kili Date: Sun, 22 Jan 2012 17:16:57 +0000 Subject: [PATCH] To store passwords securely, they should be salted, then hashed with a slow hash function. This library uses PBKDF1-SHA256, and handles all the details. ok sthen@ --- security/hs-pwstore-fast/Makefile | 22 ++++++++++++++++++++++ security/hs-pwstore-fast/distinfo | 5 +++++ security/hs-pwstore-fast/pkg/DESCR | 3 +++ security/hs-pwstore-fast/pkg/PLIST | 26 ++++++++++++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 security/hs-pwstore-fast/Makefile create mode 100644 security/hs-pwstore-fast/distinfo create mode 100644 security/hs-pwstore-fast/pkg/DESCR create mode 100644 security/hs-pwstore-fast/pkg/PLIST diff --git a/security/hs-pwstore-fast/Makefile b/security/hs-pwstore-fast/Makefile new file mode 100644 index 00000000000..445ecfeb7c1 --- /dev/null +++ b/security/hs-pwstore-fast/Makefile @@ -0,0 +1,22 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2012/01/22 17:16:57 kili Exp $ + +COMMENT = secure password storage + +DISTNAME = pwstore-fast-2.2 +CATEGORIES = security + +# BSD3 +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +MODULES = lang/ghc + +MODGHC_BUILD = cabal hackage haddock register + +RUN_DEPENDS = devel/hs-base64-bytestring>=0.1 \ + security/hs-cryptohash>=0.6 +BUILD_DEPENDS = ${RUN_DEPENDS} + +.include diff --git a/security/hs-pwstore-fast/distinfo b/security/hs-pwstore-fast/distinfo new file mode 100644 index 00000000000..9a31a5485cb --- /dev/null +++ b/security/hs-pwstore-fast/distinfo @@ -0,0 +1,5 @@ +MD5 (ghc/pwstore-fast-2.2.tar.gz) = bfDacgQWZhOqYM5th/DUTQ== +RMD160 (ghc/pwstore-fast-2.2.tar.gz) = QxEXMr9fTC67Z2utlT9xi9AxbZA= +SHA1 (ghc/pwstore-fast-2.2.tar.gz) = sanAdJQsu3nBU2lXceAf3poVN0A= +SHA256 (ghc/pwstore-fast-2.2.tar.gz) = yqROE/J0b5zw77OyvwGUBktSZ1oo08FN3E0xI0veaQ0= +SIZE (ghc/pwstore-fast-2.2.tar.gz) = 6565 diff --git a/security/hs-pwstore-fast/pkg/DESCR b/security/hs-pwstore-fast/pkg/DESCR new file mode 100644 index 00000000000..8bc278dbc0c --- /dev/null +++ b/security/hs-pwstore-fast/pkg/DESCR @@ -0,0 +1,3 @@ +To store passwords securely, they should be salted, then hashed +with a slow hash function. This library uses PBKDF1-SHA256, and +handles all the details. diff --git a/security/hs-pwstore-fast/pkg/PLIST b/security/hs-pwstore-fast/pkg/PLIST new file mode 100644 index 00000000000..b7d6b4ef0a2 --- /dev/null +++ b/security/hs-pwstore-fast/pkg/PLIST @@ -0,0 +1,26 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2012/01/22 17:16:57 kili Exp $ +lib/ghc/${DISTNAME}/ +lib/ghc/${DISTNAME}/Crypto/ +lib/ghc/${DISTNAME}/Crypto/PasswordStore.hi +lib/ghc/${DISTNAME}/HS${DISTNAME}.o +lib/ghc/${DISTNAME}/libHS${DISTNAME}.a +lib/ghc/${DISTNAME}/register.sh +@exec /usr/bin/env HOME=/nonexistent %D/lib/ghc/${DISTNAME}/register.sh -v0 +@unexec /usr/bin/env HOME=/nonexistent %D/lib/ghc/${DISTNAME}/unregister.sh -v0 --force +lib/ghc/${DISTNAME}/unregister.sh +share/doc/hs-${DISTNAME}/ +share/doc/hs-${DISTNAME}/LICENSE +share/doc/hs-${DISTNAME}/html/ +share/doc/hs-${DISTNAME}/html/Crypto-PasswordStore.html +share/doc/hs-${DISTNAME}/html/doc-index.html +share/doc/hs-${DISTNAME}/html/frames.html +share/doc/hs-${DISTNAME}/html/haddock-util.js +share/doc/hs-${DISTNAME}/html/hslogo-16.png +share/doc/hs-${DISTNAME}/html/index-frames.html +share/doc/hs-${DISTNAME}/html/index.html +share/doc/hs-${DISTNAME}/html/mini_Crypto-PasswordStore.html +share/doc/hs-${DISTNAME}/html/minus.gif +share/doc/hs-${DISTNAME}/html/ocean.css +share/doc/hs-${DISTNAME}/html/plus.gif +share/doc/hs-${DISTNAME}/html/pwstore-fast.haddock +share/doc/hs-${DISTNAME}/html/synopsis.png