The default crypt_sha256 algorithm is represented by the value 5. To switch to another algorithm, assign a different identifier. For a list of password encryption algorithms and their corresponding identifiers, see Figure 1, Table 1, Password Hashing Algorithms.
Note that the new algorithm applies only to password encryption for new users. For existing users, the previous algorithm remains operative if it remains defined in the CRYPT_ALGORITHMS_ALLOW parameter and is not unix. To see how encryption is implemented in this case, see Password Hashes Configuration. To include existing users under the new password encryption algorithm, remove the previous algorithm from the CRYPT_ALGORITHMS_ALLOW parameter as well.
For more information about configuring the algorithm choices, see the policy.conf(5) man page.