File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes MD5 Hash and JCE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "MD5 Hash and JCE" Watch "MD5 Hash and JCE" New topic
Author

MD5 Hash and JCE

B Wiley Snyder
Ranch Hand

Joined: Nov 26, 2003
Posts: 50
How can I use my own key that has already been generated elsewhere in my method to create this fingerprint below. I can only find examples online where the key is generated?


Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Confused as to what you're asking. Do you need to read an externally generated key? What format does the key come in? Have you looked at the JCE documentation in the JDK?

- Peter
[ September 08, 2004: Message edited by: Peter den Haan ]
B Wiley Snyder
Ranch Hand

Joined: Nov 26, 2003
Posts: 50
Originally posted by Peter den Haan:
Confused as to what you're asking. Do you need to read an externally generated key? What format does the key come in? Have you looked at the JCE documentation in the JDK?

- Peter

[ September 08, 2004: Message edited by: Peter den Haan ]


Yes after studying the API for JCE I finally figured it out, took a while but i did. I had my own key, I just had to convert it to a Key and insert that into the MAC with "hmacMD5"... anyway thanks for the reply !



B Wiley Snyder
Ranch Hand

Joined: Nov 26, 2003
Posts: 50
Originally posted by sabre tooth:
Tut Tut Wiley.

Grant gave you the information in the SUN cryptography forum!


TUT TUT? ... I cant ask a question on 2 different websites?

[ edited in accordance with our "be nice" rule -ds ]
[ September 10, 2004: Message edited by: Dirk Schreckmann ]
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8908
    
    8

Play nice, kids.

B Wiley, it is considered impolite to post a question more than once, whether it is within a single group of forums or on different websites. Doing so results in the duplication of effort on the part of the community to answer your question while other inquiries may go unanswered.

And sabre, we have few rules around this here ranch, but the Naming Policy is one of them. Your display name should be a first and last name separated by a space and not obviously fake. Please click here to fix it.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
B Wiley Snyder
Ranch Hand

Joined: Nov 26, 2003
Posts: 50
B Wiley Snyder
Ranch Hand

Joined: Nov 26, 2003
Posts: 50
I didnt post this question twice and grant gave me the wrong answer.???
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

And sabre, we have few rules around this here ranch, but the Naming Policy is one of them. Your display name should be a first and last name separated by a space and not obviously fake.

Thanks for the info; I have updated my record.


Retired horse trader.
 Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Please allow me to get the last words in regarding this squabble.

I deleted a couple of posts.

We like it when folks are friendly around these parts.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
B Wiley Snyder
Ranch Hand

Joined: Nov 26, 2003
Posts: 50
Originally posted by Dirk Schreckmann:
Please allow me to get the last words in regarding this squabble.

I deleted a couple of posts.

We like it when folks are friendly around these parts.

THANK YOU !!!

Okay, I'm getting closer to solving this problem but I'm still two characters off, I dumped the mac object and just use the digest....

B Wiley Snyder
Ranch Hand

Joined: Nov 26, 2003
Posts: 50
Problem solved.......

Don't try to create a HMAC-MD5 Hash algorithm to integrate with authorizenet credit card gateway (SIM) Simple Integration Method. You will never make a hash that matches theres, they don't even want you to use it, thats why they give you an out of date ASP example.

I finally just used thier (AIM) Advanced Integration Method with HttpUrlConnect and everythings peachy .


they call it the Advanced method but ^&*(*&, compared to trying to match a JCE hash with there classic ASP hash its like a dream come true....

thanks for anyone who actually gave my post a thought

-peace
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Thanks for sharing what you learned.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MD5 Hash and JCE