?
Solved

java message digest algorithm

Posted on 2014-08-20
6
Medium Priority
?
296 Views
Last Modified: 2014-09-03
Hi Experts,
I would like to implement my own message digest algorithm in java based on the existing sha256 algorithm to make it resumable (trust me, there's no other way).  Has anyone done this?  I have the java JDK source and so far can't even find the implementation of sha256, just the code that loads it...  

Thanks,
Mike
0
Comment
Question by:thready
  • 3
  • 3
6 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 40274872
to make it resumable
What do you mean by that?
0
 
LVL 1

Author Comment

by:thready
ID: 40275063
I mean so you can store the state of the internal variables, serialize the digest instance in the middle of a large checksum calculation and read it back at a later time...   It's not possible with the code from the JDK since the source is not even included for the algorithms however (found that out today).  I'll likely accept this answer as the solution unless you or someone else has any other idea...

Thanks,
Mike
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 1

Author Comment

by:thready
ID: 40275320
I did see that one, thank you.  We can't use it though, because we can't give our source to the customer (GNU license)...
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 2000 total points
ID: 40275814
I'm betting there's also one in Apache Commons Codec with a license that might do it for you (though not too sure about license)
0
 
LVL 1

Author Closing Comment

by:thready
ID: 40302080
Thanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Suggested Courses
Course of the Month15 days, 12 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question