The principle of hemodialysis is the same as other methods of dialysis; it involves diffusion of solutes across a semipermeable membrane.
Note that this is a different process to the related technique of hemofiltration.