applications
Class TestCipher
java.lang.Object
applications.TestCipher
public class TestCipher
- extends java.lang.Object
This command-line program can be used to test the
installation of the HcryptoJ API. The following example command
lines show how to compile and run the program. It assumes that
the hcrypto.jar file is located 2 directory levels above the directory
containing this program, which is the default hierarchy of HcryptoJ.
In the following example, a Caesar cipher with a shift of 4 and an
alphabet of 'a' to 'z' is being used to encrypt and then decrypt
the string "thisisatest".
To compile: javac -classpath ../../hcrypto.jar:. TestCipher.java
To run: java -classpath ../../hcrypto.jar:. TestCipher Caesar/Provider 4/az thisisatest
|
Method Summary |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestCipher
public TestCipher()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception