import java/jBCrypt, ok okan@
jBCrypt is a Java implementation of OpenBSD's Blowfish password hashing code, compatible with the canonical C implementation of the bcrypt algorithm. 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 and frustrate fast hardware implementation. The computation cost of the algorithm is parametised, so it can be increased as computers get faster. The intent is to make a compromise of a password database less likely to result in an attacker gaining knowledge of the plaintext passwords (e.g. using John the Ripper).
This commit is contained in:
parent
bbb1000ffa
commit
2cf3cc047b
BIN
java/jBCrypt/.nfs09CC55E70DB3B18C
Normal file
BIN
java/jBCrypt/.nfs09CC55E70DB3B18C
Normal file
Binary file not shown.
37
java/jBCrypt/Makefile
Normal file
37
java/jBCrypt/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/05/23 15:02:52 sthen Exp $
|
||||
|
||||
COMMENT= BCrypt library for Java
|
||||
|
||||
DISTNAME= jBCrypt-0.3
|
||||
|
||||
CATEGORIES= security
|
||||
|
||||
HOMEPAGE= http://www.mindrot.org/projects/jBCrypt/
|
||||
|
||||
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
||||
|
||||
# ISC
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= http://www.mindrot.org/files/jBCrypt/
|
||||
|
||||
MODULES= java
|
||||
MODJAVA_VER= 1.5+
|
||||
MODJAVA_JRERUN= yes
|
||||
MODJAVA_BUILD= ant
|
||||
|
||||
# JUnit tests exist but unsure how to handle non-ascii chars
|
||||
NO_REGRESS= Yes
|
||||
|
||||
do-configure:
|
||||
cp ${FILESDIR}/build.xml ${WRKSRC}/
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${MODJAVA_JAR_DIR} ${MODJAVA_DOC_DIR}/BCrypt
|
||||
${INSTALL_DATA} ${WRKSRC}/build/lib/BCrypt.jar ${MODJAVA_JAR_DIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/{README,LICENSE} ${MODJAVA_DOC_DIR}/BCrypt
|
||||
|
||||
.include <bsd.port.mk>
|
5
java/jBCrypt/distinfo
Normal file
5
java/jBCrypt/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (jBCrypt-0.3.tar.gz) = hLyQRmn1MrelX8ZWwPXG1g==
|
||||
RMD160 (jBCrypt-0.3.tar.gz) = 04DrElYzvY5K1OYfbpExWfp4FNI=
|
||||
SHA1 (jBCrypt-0.3.tar.gz) = VhQo/McYU7+lpHUe35kNSpP7ZE4=
|
||||
SHA256 (jBCrypt-0.3.tar.gz) = 6zl4Ax0ijEAQsf4jM8eGSAUEfomMR7/32cqDYJEdjco=
|
||||
SIZE (jBCrypt-0.3.tar.gz) = 14340
|
40
java/jBCrypt/files/build.xml
Normal file
40
java/jBCrypt/files/build.xml
Normal file
@ -0,0 +1,40 @@
|
||||
<!-- $OpenBSD: build.xml,v 1.1.1.1 2012/05/23 15:02:52 sthen Exp $ -->
|
||||
|
||||
<project name="BCrypt" default="all" basedir=".">
|
||||
|
||||
<!-- Properties -->
|
||||
|
||||
<property name="name" value="BCrypt"/>
|
||||
<property name="src" value="src"/>
|
||||
<property name="build" value="build"/>
|
||||
<property name="build.classes" value="${build}/classes"/>
|
||||
<property name="build.lib" value="${build}/lib"/>
|
||||
<property name="packagenames" value="BCrypt.*"/>
|
||||
|
||||
<target name="prepare">
|
||||
<mkdir dir="${src}"/>
|
||||
<mkdir dir="${build}"/>
|
||||
<mkdir dir="${build.classes}"/>
|
||||
<mkdir dir="${build.lib}"/>
|
||||
<copy todir="${src}">
|
||||
<fileset dir="./">
|
||||
<include name="BCrypt.java"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="clean">
|
||||
<delete dir="${build}"/>
|
||||
<delete dir="${src}"/>
|
||||
</target>
|
||||
|
||||
<target name="classes" depends="prepare">
|
||||
<javac srcdir="${src}/" destdir="${build.classes}" debug="off" optimize="on"/>
|
||||
</target>
|
||||
|
||||
<target name="all" depends="classes">
|
||||
<jar jarfile="${build.lib}/${name}.jar" basedir="${build.classes}"/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
|
11
java/jBCrypt/pkg/DESCR
Normal file
11
java/jBCrypt/pkg/DESCR
Normal file
@ -0,0 +1,11 @@
|
||||
jBCrypt is a Java implementation of OpenBSD's Blowfish password
|
||||
hashing code, compatible with the canonical C implementation of the
|
||||
bcrypt algorithm.
|
||||
|
||||
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 and frustrate fast hardware implementation.
|
||||
The computation cost of the algorithm is parametised, so it can be
|
||||
increased as computers get faster. The intent is to make a compromise
|
||||
of a password database less likely to result in an attacker gaining
|
||||
knowledge of the plaintext passwords (e.g. using John the Ripper).
|
8
java/jBCrypt/pkg/PLIST
Normal file
8
java/jBCrypt/pkg/PLIST
Normal file
@ -0,0 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/05/23 15:02:52 sthen Exp $
|
||||
share/java/
|
||||
share/java/classes/
|
||||
share/java/classes/BCrypt.jar
|
||||
share/java/doc/
|
||||
share/java/doc/BCrypt/
|
||||
share/java/doc/BCrypt/LICENSE
|
||||
share/java/doc/BCrypt/README
|
Loading…
x
Reference in New Issue
Block a user