<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">

<f:be.infobox state="{f:if(condition:'{preset.isAvailable}', then:'0', else:'2')}" disableIcon="true">
    <div class="form-check">
        <input
            type="radio"
            class="form-check-input"
            id="t3-install-tool-configuration-passwordHashing-argon2id"
            name="install[values][{feature.name}][enable]"
            value="{preset.name}"
            {f:if(condition: '{preset.isAvailable} && {isWritable}', then:'', else:'disabled="disabled"')}
            {f:if(condition: preset.isActive, then:'checked="checked"')}
        />
        <label for="t3-install-tool-configuration-passwordHashing-argon2id" class="form-check-label">
            <strong>Argon2id</strong> {f:if(condition: preset.isActive, then:' [Active]')}
        </label>
    </div>
    <p>
        <f:if condition="{preset.isAvailable}">
            <f:then>
                <strong>Use Argon2id if you are using PHP >= 7.3 on all instances (local, test, production, ...)!</strong><br />
                Argon2id is a modern key derivation function. It provides better resistance
                to some forms of attack compared to Argon2i.
            </f:then>
            <f:else>
                Argon2id is not available on this system. If you want to use Argon2id make sure you are using PHP >= 7.3
                with Argon support.
            </f:else>
        </f:if>
    </p>
</f:be.infobox>

</html>
