how would i make this encrypt?
Archived a year ago
B
Nikolai
Active!
<form id="passwordForm">
<label for="password">Unlock chat:</label>
<input type="password" id="password" name="password">
<button type="submit">Unlock</button>
</form>
<script>
const passwordForm = document.getElementById("passwordForm");
const correctPassword = "546534765";
passwordForm.addEventListener('submit', (event) => {
event.preventDefault();
const enteredPassword = document.getElementById("password").value;
if (enteredPassword === correctPassword) {
window.location.href = " a website soon to be put in ";
} else {
alert("Haha incorrect stop while you can you'll never get it just stop");
}
});
</script>
