For crypt(3): http://www.openldap.org/faq/index.cgi?file=344 For SHA1, see the Netscape TechNote given here: http://www.openldap.org/faq/index.cgi?file=347 For MD5, just s/SHA/MD5/ (and fudge as needed).