The first case doesn't work because you don't call TransformFinalBlock.
The second case works fine for me, I get 8 bytes, that is 64 bits.
The third case doesn't work because you flush the write stream but you should close it instead.
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
The first case doesn't work because you don't call TransformFinalBlock.
The second case works fine for me, I get 8 bytes, that is 64 bits.
The third case doesn't work because you flush the write stream but you should close it instead.