Results 1 to 9 of 9
Thread: Simple Encryption Program
- 07-20-2012, 09:56 AM #1
Member
- Join Date
- Jul 2012
- Posts
- 14
- Rep Power
- 0
Simple Encryption Program
I'm using a very simple encryption program to generate a MD5 hash. I installed the Cryptix library correctly using the command line in Windows but when I try to compile my sample program the cmd gives an error that it could not find some packages from the library and the program fails to compile. I've correctly installed the library and even the compiler says that its already installed when I try to reinstall. Any leads will be much appreciated.
- 07-20-2012, 10:06 AM #2
Member
- Join Date
- Jul 2012
- Posts
- 14
- Rep Power
- 0
Re: Simple Encryption Program
Here's what the cmd throws when I try to compile the program named MD5Sample.java:
MD5Sample.java:3: error: package cryptix.util.core does not exist
import cryptix.util.core.Hex;
^
MD5Sample.java:4: error: package cryptix.provider.md does not exist
import cryptix.provider.md.*;
^
MD5Sample.java:29: error: package cryptix.util.core does not exist
w = cryptix.util.core.Hex.dumpString(hash);
^
3 errors
- 07-20-2012, 10:21 AM #3
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: Simple Encryption Program
What command are you using to compile your code?
Please do not ask for code as refusal often offends.
- 07-20-2012, 12:08 PM #4
Member
- Join Date
- Jul 2012
- Posts
- 14
- Rep Power
- 0
Re: Simple Encryption Program
javac MD5Sample.java
- 07-20-2012, 01:21 PM #5
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: Simple Encryption Program
You need to have the cryptix jar files on the classpath:
javac -cp<path to jars, including the jar name> MD5Sample.java
You'll need that to run them as well:
java -cp<etc etc> MD5SamplePlease do not ask for code as refusal often offends.
- 07-21-2012, 07:28 PM #6
Member
- Join Date
- Jul 2012
- Posts
- 14
- Rep Power
- 0
Re: Simple Encryption Program
I tried compiling using the above command like this:
C:\Program Files\Java\jdk1.7.0_04\cryptix32-20001002-r3.2.0> javac -cp<C:\Program Files\Java\jdk1.7.0_04\cryptix32-20001002-r3.2.0\cryptix32.jar> MD5Sample.java
but the command line gives the following error even though the file is in the current directory:
The system cannot find the file specified.
On a related note, does anyone know whether Cryptix is compatible with Java jdk 1.7?
- 07-22-2012, 12:38 PM #7
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: Simple Encryption Program
The <> brackets are shorthand for "fill in this bit".
They aren't part of the command.Please do not ask for code as refusal often offends.
- 07-23-2012, 12:24 PM #8
Member
- Join Date
- Jul 2012
- Posts
- 14
- Rep Power
- 0
Re: Simple Encryption Program
- 07-23-2012, 12:56 PM #9
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Similar Threads
-
Need a simple https client-server application with encryption
By Gargo in forum NetworkingReplies: 0Last Post: 11-27-2011, 02:41 PM -
Simple program, simple problem
By taymilll in forum New To JavaReplies: 12Last Post: 06-20-2011, 05:12 AM -
Please help with simple program.. Very simple.
By jonytek in forum New To JavaReplies: 7Last Post: 02-14-2011, 12:44 AM -
simple program
By blastoff in forum New To JavaReplies: 5Last Post: 04-14-2010, 11:25 PM -
Very Simple Encryption
By AndrewM16921 in forum New To JavaReplies: 5Last Post: 03-24-2009, 01:00 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks