public static function SimpleLdap::hashes in Simple LDAP 7
Same name and namespace in other branches
- 7.2 SimpleLdap.class.php \SimpleLdap::hashes()
Returns an array of supported hash types.
The keys of this array are also the values supported by SimpleLdap::hash(). The values are translated, human-readable values.
2 calls to SimpleLdap::hashes()
- simple_ldap_sso_admin in simple_ldap_sso/
simple_ldap_sso.admin.inc - Admin form for Single Sign On.
- simple_ldap_user_admin in simple_ldap_user/
simple_ldap_user.admin.inc - Simple LDAP User configuration form.
File
- ./
SimpleLdap.class.php, line 225 - Class defining base Simple LDAP functionallity.
Class
- SimpleLdap
- Simple LDAP class.
Code
public static function hashes() {
$types = array();
// Crypt, and Salted Crypt.
$types['crypt'] = t('Crypt');
$types['salted crypt'] = t('Salted Crypt');
// Extended DES.
if (defined('CRYPT_EXT_DES') || CRYPT_EXT_DES == 1) {
$types['extended des'] = t('Extended DES');
}
// MD5Crypt.
if (defined('CRYPT_MD5') || CRYPT_MD5 == 1) {
$types['md5crypt'] = t('MD5Crypt');
}
// Blowfish.
if (defined('CRYPT_BLOWFISH') || CRYPT_BLOWFISH == 1) {
$types['blowfish'] = t('Blowfish');
}
// MD5
$types['md5'] = t('MD5');
// SMD5.
$types['salted md5'] = t('Salted MD5');
// SHA.
$types['sha'] = t('SHA');
// SSHA.
$types['salted sha'] = t('Salted SHA');
// Unicode (used by Active Directory).
$types['unicode'] = t('Unicode');
return $types;
}