This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes DES verification not working outside Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "DES verification not working outside Eclipse" Watch "DES verification not working outside Eclipse" New topic
Author

DES verification not working outside Eclipse

Gerardo Tasistro
Ranch Hand

Joined: Feb 08, 2005
Posts: 362
Ok this has me really confused. I have Eclipse Platform Version: 3.3.2 Build id: M20080221-1800 and I'm using this bit of code:



It works fine if run inside Eclipse, but fails if ran as a Jar.

This is the output from the Eclipse run.



Read public key from stream
MSG:%% REMOVED FOR SECURITY %%#4/17/09# # # ,MCwCFFvNWacws72u2bhKNXpOwedHvFqFAhRzcznQptP//gU37j+8JnN49H8yLQ==
Signature lenght :46
DSA result==true
269 [ main] INFO licensecontrol.LicensedContext - CTX:
278 [ main] INFO licensecontrol.LicensedContext - License is valid.


The output from the Jar is:


Read public key from stream
MSG:%% REMOVED FOR SECURITY %%#4/17/09# # # ,MCwCFFvNWacws72u2bhKNX
pOwedHvFqFAhRzcznQptP//gU37j+8JnN49H8yLQ==
Signature lenght :46
DSA result==false


Note that the line break is produced by the DOS command line and copied here.

Notice how the signature is the same, but it doesn't validate. Both runs are with the same Java version.

Any ideas?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DES verification not working outside Eclipse
 
Similar Threads
Call EJB from Application Client
hibernate error
String lentgh problem in java-oracle
Can't connect to MySQL database with Hibernate
Problem in pushing data through hibernate even after creating the hibernate session...