org.apache.commons.codec.digest
Class UnixCryptTest

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

public class UnixCryptTest
extends Object


Constructor Summary
UnixCryptTest()
           
 
Method Summary
 void testCtor()
           
 void testUnicCryptInvalidSalt()
          Unimplemented "$foo$" salt prefixes would be threated as UnixCrypt salt.
 void testUnixCryptBytes()
           
 void testUnixCryptExplicitCall()
          Some salts are invalid for crypt(3) but not for unixCrypt().
 void testUnixCryptNullData()
           
 void testUnixCryptStrings()
           
 void testUnixCryptWithEmptySalt()
           
 void testUnixCryptWithHalfSalt()
          Single character salts are illegal! E.g.
 void testUnixCryptWithoutSalt()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnixCryptTest

public UnixCryptTest()
Method Detail

testCtor

public void testCtor()

testUnixCryptStrings

public void testUnixCryptStrings()

testUnixCryptBytes

public void testUnixCryptBytes()

testUnixCryptExplicitCall

public void testUnixCryptExplicitCall()
Some salts are invalid for crypt(3) but not for unixCrypt().


testUnixCryptWithHalfSalt

public void testUnixCryptWithHalfSalt()
Single character salts are illegal! E.g. with glibc 2.13, crypt("secret", "x") = "xxZREZpkHZpkI" but crypt("secret", "xx") = "xxWAum7tHdIUw" which makes it unverifyable.


testUnicCryptInvalidSalt

public void testUnicCryptInvalidSalt()
Unimplemented "$foo$" salt prefixes would be threated as UnixCrypt salt.


testUnixCryptNullData

public void testUnixCryptNullData()

testUnixCryptWithEmptySalt

public void testUnixCryptWithEmptySalt()

testUnixCryptWithoutSalt

public void testUnixCryptWithoutSalt()


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