此功能在 Solaris 9 12/02 发行版中是新增的。
本 Solaris 发行版包含了对 crypt() 函数的扩展,并引入了 crypt_gensalt() 函数。这些增强功能使管理员可以更改用于遮蔽用户的 UNIX 登录口令的算法。
包含了用于 MD5 和 Blowfish 的模块。MD5 模块位于 crypt_sunmd5 和 crypt_bsdmd5。Blowfish 模块位于 crypt_bsdbf。
开发者可以创建替换口令遮蔽算法的新模块。Application developers must use the crypt_gensalt() function instead of manually generating the salt string for passing to the crypt() function.
用作替代算法的模块在 crypt.conf(4) 文件中指定。module_path 字段指定实现两个所需的函数的共享库对象的路径:
crypt_gensalt_impl()—生成 salt 字符串
crypt_genhash_impl()—生成加密的口令
有关详细信息,请参见 crypt(3C) 手册页和 policy.conf(4) 手册页。