Edit

IABSD.fr/ports/java/jBCrypt/files

Branch :

  • Show log

    Commit

  • Author : sthen
    Date : 2012-05-23 15:02:52
    Hash : 2cf3cc04
    Message : 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).

  • build.xml
  • <!-- $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>