[jboss-cvs] jboss-seam/examples/wiki/src/org/jboss/seam/wiki/util ...

Christian Bauer christian.bauer at jboss.com
Tue Feb 27 08:21:44 EST 2007


  User: cbauer  
  Date: 07/02/27 08:21:44

  Modified:    examples/wiki/src/org/jboss/seam/wiki/util  Hash.java
  Log:
  Implemented conversational navigation (not perfect, open JIRA issues)
  
  Revision  Changes    Path
  1.2       +8 -0      jboss-seam/examples/wiki/src/org/jboss/seam/wiki/util/Hash.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Hash.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/org/jboss/seam/wiki/util/Hash.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- Hash.java	21 Feb 2007 16:24:12 -0000	1.1
  +++ Hash.java	27 Feb 2007 13:21:44 -0000	1.2
  @@ -5,6 +5,14 @@
   import org.apache.commons.codec.binary.Hex;
   import org.jboss.seam.annotations.Name;
   
  +/**
  + * Not reall save, should use a random salt, prepended later on the digest.
  + * Should also iterate the hashing a few thousand times to make brute force
  + * attacks more difficult. Basically, implement user password encryption with
  + * the same technique as on a typical Linux distribution.
  + *
  + * TODO: Make this more secure - before releasing to public and breaking all stored passwords!
  + */
   @Name("hashUtil")
   public class Hash {
       String hashFunction = "MD5";
  
  
  



More information about the jboss-cvs-commits mailing list