crypt is capable of generating an encrypted string using multiple encryption methods as long as they are supported bu the server.
the encryption method used depends on the format of the salt string.
see this page for details:
http://php.net/manual/en/function.crypt.php