summaryrefslogtreecommitdiff
path: root/security/py-Des
diff options
context:
space:
mode:
authorpettai <pettai>2012-11-04 21:57:11 +0000
committerpettai <pettai>2012-11-04 21:57:11 +0000
commit93ad7165a26c7e6b7627ac71d26551dba84ea2d9 (patch)
treed807e7e38d6987a8fbbae4b6b641c4d80fe54d32 /security/py-Des
parent2cdd56909fdd0d92978184aa87570a4ee8a4ce8e (diff)
downloadpkgsrc-93ad7165a26c7e6b7627ac71d26551dba84ea2d9.tar.gz
This is a pure python implementation of the DES encryption algorithm.
It is in pure python to avoid portability issues, since most DES implementations are programmed in C (for performance reasons). Triple DES class is also implemented, utilising the DES base. Triple DES is either DES-EDE3 with a 24 byte key, or DES-EDE2 with a 16 byte key. See the "About triple DES" section below more info on this algorithm. The code below is not written for speed or performance, so not for those needing a fast des implementation, but rather a handy portable solution ideal for small usage.
Diffstat (limited to 'security/py-Des')
-rw-r--r--security/py-Des/DESCR11
-rw-r--r--security/py-Des/Makefile17
-rw-r--r--security/py-Des/PLIST4
-rw-r--r--security/py-Des/distinfo5
4 files changed, 37 insertions, 0 deletions
diff --git a/security/py-Des/DESCR b/security/py-Des/DESCR
new file mode 100644
index 00000000000..ff9835362b3
--- /dev/null
+++ b/security/py-Des/DESCR
@@ -0,0 +1,11 @@
+This is a pure python implementation of the DES encryption algorithm.
+It is in pure python to avoid portability issues, since most DES
+implementations are programmed in C (for performance reasons).
+
+Triple DES class is also implemented, utilising the DES base. Triple DES
+is either DES-EDE3 with a 24 byte key, or DES-EDE2 with a 16 byte key.
+See the "About triple DES" section below more info on this algorithm.
+
+The code below is not written for speed or performance, so not for those
+needing a fast des implementation, but rather a handy portable solution
+ideal for small usage.
diff --git a/security/py-Des/Makefile b/security/py-Des/Makefile
new file mode 100644
index 00000000000..1543f9d9353
--- /dev/null
+++ b/security/py-Des/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2012/11/04 21:57:11 pettai Exp $
+#
+
+DISTNAME= pyDes-2.0.1
+PKGNAME= ${PYPKGPREFIX}-Des-2.0.1
+CATEGORIES= security
+MASTER_SITES= http://twhiteman.netfirms.com/pyDES/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://twhiteman.netfirms.com/pyDES/
+COMMENT= DES implementation in python
+LICENSE= public-domain
+
+PYDISTUTILSPKG= yes
+
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/py-Des/PLIST b/security/py-Des/PLIST
new file mode 100644
index 00000000000..49e253c7060
--- /dev/null
+++ b/security/py-Des/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2012/11/04 21:57:11 pettai Exp $
+${PYSITELIB}/pyDes.py
+${PYSITELIB}/pyDes.pyc
+${PYSITELIB}/pyDes.pyo
diff --git a/security/py-Des/distinfo b/security/py-Des/distinfo
new file mode 100644
index 00000000000..95b5cc9a8a5
--- /dev/null
+++ b/security/py-Des/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2012/11/04 21:57:11 pettai Exp $
+
+SHA1 (pyDes-2.0.1.tar.gz) = c6fc0fbb86d50706337cb5aa6a3a59b444cb1322
+RMD160 (pyDes-2.0.1.tar.gz) = 08784eee7bc8075d6bb1c2ae5673e1796a811787
+Size (pyDes-2.0.1.tar.gz) = 11039 bytes