src/Password/Argon2iHandler.php
public static function isSupported()
	{
		// Check for native PHP engine support in the password extension
		if (version_compare(PHP_VERSION, '7.2', '>=') && \defined('PASSWORD_ARGON2I'))
		{
			return true;
		}

		// Check if the sodium_compat polyfill is installed and look for compatibility through that
		if (class_exists('\\ParagonIE_Sodium_Compat') && method_exists('\\ParagonIE_Sodium_Compat', 'crypto_pwhash_is_available'))
		{
			return \ParagonIE_Sodium_Compat::crypto_pwhash_is_available();
		}

		// Check for support from the (lib)sodium extension
		return \function_exists('sodium_crypto_pwhash_str') || \extension_loaded('libsodium');
	}
public static function isSupported()
	{
		// Check for native PHP engine support in the password extension
		if (version_compare(PHP_VERSION, '7.2', '>=') && \defined('PASSWORD_ARGON2I'))
		{
			return true;
		}

		// Check if the sodium_compat polyfill is installed and look for compatibility through that
		if (class_exists('\\ParagonIE_Sodium_Compat') && method_exists('\\ParagonIE_Sodium_Compat', 'crypto_pwhash_is_available'))
		{
			return \ParagonIE_Sodium_Compat::crypto_pwhash_is_available();
		}

		// Check for support from the (lib)sodium extension
		return \function_exists('sodium_crypto_pwhash_str') || \extension_loaded('libsodium');
	}
public static function isSupported ( ) { // Check for native PHP engine support in the password extension if ( version_compare ( PHP_VERSION , '7.2' , '>=' ) && \ defined ( 'PASSWORD_ARGON2I' ) ) { return true ; } // Check if the sodium_compat polyfill is installed and look for compatibility through that if ( class_exists ( '\\ParagonIE_Sodium_Compat' ) && method_exists ( '\\ParagonIE_Sodium_Compat' , 'crypto_pwhash_is_available' ) ) { return \ ParagonIE_Sodium_Compat :: crypto_pwhash_is_available ( ) ; } // Check for support from the (lib)sodium extension return \ function_exists ( 'sodium_crypto_pwhash_str' ) || \ extension_loaded ( 'libsodium' ) ; }
Check that the password handler is supported in this environment

@return  boolean

@since   1.2.0
Check that the password handler is supported in this environment