Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 6 characters in body
Source Link
Jack
  • 133.9k
  • 33
  • 252
  • 349

Yes, it can be used to hash streams since it's iterative: you go 512 bits each iteration, and you obtain a new 512 bits block that you can use for the next one.

Here you can find the pseudocode: link. It should be quite easy to implement in Java. You just need to do some padding when you encounter last block and some bitwise operations!

WARNING: the only thing is that usually unsigned ints are needed while Java offers just signed one, you should do some tricks to avoid problems..

Yes, it can be used to hash streams since it's iterative: you go 512 bits each iteration, and you obtain a new 512 bits that you can use for the next one.

Here you can find the pseudocode: link. It should be quite easy to implement in Java. You just need to do some padding when you encounter last block and some bitwise operations!

WARNING: the only thing is that usually unsigned ints are needed while Java offers just signed one, you should do some tricks to avoid problems..

Yes, it can be used to hash streams since it's iterative: you go 512 bits each iteration, and you obtain a new 512 bits block that you can use for the next one.

Here you can find the pseudocode: link. It should be quite easy to implement in Java. You just need to do some padding when you encounter last block and some bitwise operations!

WARNING: the only thing is that usually unsigned ints are needed while Java offers just signed one, you should do some tricks to avoid problems..

Source Link
Jack
  • 133.9k
  • 33
  • 252
  • 349

Yes, it can be used to hash streams since it's iterative: you go 512 bits each iteration, and you obtain a new 512 bits that you can use for the next one.

Here you can find the pseudocode: link. It should be quite easy to implement in Java. You just need to do some padding when you encounter last block and some bitwise operations!

WARNING: the only thing is that usually unsigned ints are needed while Java offers just signed one, you should do some tricks to avoid problems..