import HmacMD5 from 'crypto-js/hmac-md5'; document.login1.submit_button.disabled = false; document.forms.login1.addEventListener("formdata", (form_data_evt) => { const form_data = form_data_evt.formData; const res = HmacMD5(form_data.get("challenge"), form_data.get("password")); form_data.set("password", res); });