• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MD5 Hash and JCE

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?


 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 ]
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
B Wiley Snyder
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
B Wiley Snyder
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I didnt post this question twice and grant gave me the wrong answer.???
 
Ranch Hand
Posts: 781
Netbeans IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
B Wiley Snyder
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for sharing what you learned.
 
reply
    Bookmark Topic Watch Topic
  • New Topic