org.apache.commons.codec.digest
Class CryptTest
java.lang.Object
org.apache.commons.codec.digest.CryptTest
public class CryptTest
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CryptTest
public CryptTest()
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.