org.apache.commons.codec.digest
Class CryptTest

java.lang.Object
  extended by org.apache.commons.codec.digest.CryptTest

public class CryptTest
extends Object


Constructor Summary
CryptTest()
           
 
Method Summary
 void testCrypt()
           
 void testCryptWithBytes()
           
 void testCryptWithEmptySalt()
          An empty string as salt is invalid.
 void testDefaultCryptVariant()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptTest

public CryptTest()
Method Detail

testCrypt

public void testCrypt()

testDefaultCryptVariant

public void testDefaultCryptVariant()

testCryptWithBytes

public void testCryptWithBytes()

testCryptWithEmptySalt

public void testCryptWithEmptySalt()
An empty string as salt is invalid. The C and Perl implementations return an empty string, PHP threads it as NULL. Our implementation should throw an Exception as any resulting hash would not be verifyable with other implementations of crypt().



Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.