Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

java.security.* question

  • 31-05-2001 01: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
Advertisement