Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

java.security.* question

  • 31-05-2001 02:19AM
    #1
    Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭


    should ask on Programming board, but what the hey. Security people here would probably answer faster. smile.gif

    I'm using the DigestStream to generate a checksum on a file. I was just wondering is that checksum based on that file or other factors (ie. Would the checksum change if the machine/OS changed?).


Comments

  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    Cool. Thanks.


  • Moderators, Social & Fun Moderators Posts: 10,501 Mod ✭✭✭✭ecksor


    Digest algorithms such as md5 and SHA (afaik, the algorithms that are generally used by java) are generally applied to just the data that is being digested rather than anything external to that.

    In the case of DigestInputStream and DigestOutputStream, the description is "A transparent stream that updates the associated message digest using the bits going through the stream.", so factors apart from the data going through the stream shouldn't change the result I reckon.


Advertisement