cryptix.test

Class TestUnixCrypt

public class TestUnixCrypt extends BaseTest

This class tests the cryptix.tools.UnixCrypt class (it may also fail if the DES implementation is incorrect).

Copyright © 1997, 1998 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.1 $

Author: David Hopwood

Method Summary
protected voidengineTest()
Test that is run by distribution to make sure everything is OK!
static voidmain(String[] args)

Method Detail

engineTest

protected void engineTest()
Test that is run by distribution to make sure everything is OK!

This C test program will confirm (note that some systems don't implement straight crypt(3)).

    #include 
    main()
    {
        const char *key = "CryptixRulez";
        const char salt[] = {'o','k'};
        printf("crypt(%s, %s) = %s\n",
               key, salt, crypt(key, salt));
    }
 

main

public static void main(String[] args)