Canvas provides you with the option to enable anonymisation when setting up an assignment.