• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/security/password.php
  • Класс: BitrixMainSecurityPassword
  • Вызов: Password::needRehash
static function needRehash($hash): bool
{
	if(CRYPT_SHA512 == 1)
	{
		if(strlen($hash) > 100)
		{
			//new SHA-512 hash usually 106 bytes long
			return false;
		}
	}
	else
	{
		if(strlen($hash) > 32)
		{
			//old md5+salt method
			return false;
		}
	}
	return true;
}