Has anyone tried electrolysis to remove rust?

I was thinking of submerging a razor in a mild base like sodium carbonate. Then connecting the razor to a negative lead from a DC power supply and a sacrificial piece of metal to the positive lead of the same supply. This should reduce the razor as it gains electrons and oxidize the sacrificial piece as it looses electrons. I was thinking of using aluminum foil for the sacrificial piece since aluminum oxidizes so easily. Or would it be better to use a piece of rough iron?