If it begins with an underscore ("_") then the DES Extended Format is used in interpreting both the key and the salt, as outlined below.
Modular
If it begins with the string "$digit$" then the Modular Crypt Format is used, as outlined below.
Traditional
If neither of the above is true, it assumes the Traditional Format, using the entire string as the salt (or the first portion).
All routines are designed to be time-consuming. A brief test on a Pentium 166/MMX shows the DES crypt to do approximately 2640 crypts a CPU second and MD5 to do about 62 crypts a CPU second.