My understanding of casehardening has always been that by heating a low carbon steel in a carbon rich environment, the carbon is absorbed into the surface of the steel. Thus, locally, the metal becomes a steel with a higher carbon content, and so capable of being heat treated to harden it.
Salt baths used for case hardening are often Cyanide based..
Nitriding is a process where the steel is heated in a Nitrogen rich environment, such as Ammonia, or a Nitrogen rich compound. This does harden the steel, and also improves its fatigue resistance; hence its use for crankshafts, and other components subjected to fluctuating loads.
Tufftriding is a salt bath version of Nitriding, and, again, is popular for Crankshafts.
What is important is remove the compound layer, which is EXTREMELY hard, but very friable.; I have seen it crumble off a crankshaft almost like grit.. If the compound layer is not removed, this will result in surface degrading in an exponential fashion, which does nothing for the shaft or the bearings in which it runs.
In all cases, the depth of case is determined by the time of exposure. Crankshafts were Nitrided for twenty or sixty hours, depending upon the use to which the engine was going to be put.
Howard