java based hashing of photo and video