There are various ways in which it can be done:
(1) Differential quenching, which can be done in different ways:
- Insulate the part of the blade that should be softer (usually with a mix of clay and ashes) so it will cool down more slowly when the blade is quenched. This is the traditional Japanese technique, and modern differentially hardened katanas are usually done this way.
- Only quench the edge. Can be done by only putting the edge into the quenching fluid, or by pouring water onto the edge.
(2) Differential tempering, as described above.
(3) Differential auto-tempering. Quench briefly, and the body of the blade, away from the edge(s) will be hot enough to temper the body.
Variable hardness can also be done through lamination or other composite construction (e.g., inserted-edge), with a uniform heat treatment. Can also combine lamination with differential heat treatment.