Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

java.security.* question

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