--- python-bcrypt-0.1.orig/debian/changelog +++ python-bcrypt-0.1/debian/changelog @@ -0,0 +1,12 @@ +python-bcrypt (0.1-1build1) jaunty; urgency=low + + * No change rebuild to build with Python 2.6. + + -- Alessio Treglia Tue, 10 Mar 2009 08:00:57 +0100 + +python-bcrypt (0.1-1) unstable; urgency=low + + * Initial release (Closes: #454627) + * Added man page. + + -- Kevin Coyner Sat, 22 Dec 2007 13:45:05 -0500 --- python-bcrypt-0.1.orig/debian/compat +++ python-bcrypt-0.1/debian/compat @@ -0,0 +1 @@ +5 --- python-bcrypt-0.1.orig/debian/pycompat +++ python-bcrypt-0.1/debian/pycompat @@ -0,0 +1 @@ +2 --- python-bcrypt-0.1.orig/debian/manpages +++ python-bcrypt-0.1/debian/manpages @@ -0,0 +1 @@ +debian/python-bcrypt.1 --- python-bcrypt-0.1.orig/debian/watch +++ python-bcrypt-0.1/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.mindrot.org/files/py-bcrypt/py-bcrypt-(.*)\.tar\.gz --- python-bcrypt-0.1.orig/debian/copyright +++ python-bcrypt-0.1/debian/copyright @@ -0,0 +1,67 @@ +This package was debianized by Kevin Coyner on +Sat, 22 Dec 2007 13:45:05 -0500. + +It was downloaded from http://www.mindrot.org/projects/py-bcrypt/ + +The Python binding code is subject to this license: + +Upstream Author: Damien Miller + +Copyright: (c) 2006 Damien Miller + +License: + + Permission to use, copy, modify, and distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +The underlying blowfish code is derived from OpenBSD libc and is +subject to the following license: + +Upstream Author: Niels Provos + +Copyright: (c) 1997 Niels Provos + +Implementation advice: David Mazieres + +License: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + 3. All advertising materials mentioning features or use of this software + must display the following acknowledgement: This product includes software + developed by Niels Provos. + + 4. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The Debian packaging is (C) 2007, Kevin Coyner and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- python-bcrypt-0.1.orig/debian/control +++ python-bcrypt-0.1/debian/control @@ -0,0 +1,26 @@ +Source: python-bcrypt +Section: python +Priority: extra +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Kevin Coyner +Uploaders: Debian Python Modules Team +Build-Depends: cdbs (>=0.4.43), debhelper (>= 5), python-all-dev, python-support (>= 0.6) +Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-bcrypt/trunk/ +Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/python-bcrypt/?op=log +Homepage: http://www.mindrot.org/projects/py-bcrypt/ +Standards-Version: 3.7.3 + +Package: python-bcrypt +Architecture: any +Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends} +XB-Python-Version: ${python:Versions} +Description: implementation of OpenBSD's Blowfish password hash algorithm + py-bcrypt is a Python module implementating the OpenBSD Blowfish password + hashing algorithm, as described in "A Future-Adaptable Password Scheme" by + Niels Provos and David Mazieres: + http://www.openbsd.org/papers/bcrypt-paper.ps + . + This module hashes passwords using a version of Bruce Schneier's Blowfish + block cipher with modifications designed to raise the cost of off-line + password cracking. The computation cost of the algorithm is parametised, so + it can be increased as computers get faster. --- python-bcrypt-0.1.orig/debian/rules +++ python-bcrypt-0.1/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM = pysupport + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/python-distutils.mk --- python-bcrypt-0.1.orig/debian/docs +++ python-bcrypt-0.1/debian/docs @@ -0,0 +1 @@ +README --- python-bcrypt-0.1.orig/debian/python-bcrypt.1 +++ python-bcrypt-0.1/debian/python-bcrypt.1 @@ -0,0 +1,54 @@ +.TH PYTHON-BCRYPT 1 "December 22, 2007" +.SH "NAME" +python-bcrypt \- a module to implement OpenBSD's Blowfish password hash algorithm +.PP +This manual page was written for the \fBDebian\fP distribution +because the original program does not have a manual page. +.PP +python-bcrypt is a Python module implementating the OpenBSD Blowfish password +hashing algorithm, as described in "A Future-Adaptable Password Scheme" by +Niels Provos and David Mazieres: http://www.openbsd.org/papers/bcrypt-paper.ps +.PP +This system hashes passwords using a version of Bruce Schneier's Blowfish +block cipher with modifications designed to raise the cost of off-line +password cracking. The computation cost of the algorithm is parametised, so it +can be increased as computers get faster. +.PP +A simple example demonstrates most of the features: + + import bcrypt + + # Hash a password for the first time +.br + hashed = bcrypt.hashpw(password, bcrypt.gensalt()) +.br + + # gensalt's log_rounds parameter determines the complexity +.br + # the work factor is 2**log_rounds, and the default is 12 +.br + hashed = bcrypt.hashpw(password, bcrypt.gensalt(10)) + + # Check that an unencrypted password matches one that has +.br + # previously been hashed +.br + if bcrypt.hashpw(plaintext, hashed) == hashed: +.br + print "It matches" +.br + else: +.br + print "It does not match" + +.SH "AUTHOR" +python-bcrypt was written by Damien Miller +.PP +This manual page was written by Kevin Coyner for the +\fBDebian\fP system (but may be used by others). Permission is granted to +copy, distribute and/or modify this document under the terms of the GNU +General Public License, Version 2 any later version published by the Free +Software Foundation. +.PP +On Debian systems, the complete text of the GNU General Public License can be +found in /usr/share/common\-licenses/GPL.