Ind.ie is now Small Technology Foundation.
Commit 046c6d63 authored by Aral Balkan's avatar Aral Balkan

Generate keys and log them to the console

parent 4e0e589d
......@@ -36,11 +36,6 @@
</form>
<script>
// Generate keys from password
function generateKeysFromPassword(password) {
console.log(`Generate keys from password: ${password}`)
}
// Main
document.addEventListener('DOMContentLoaded', () => {
document.getElementById('password').focus()
......@@ -49,7 +44,9 @@
const form = event.target
const password = form.elements.password.value
generateKeysFromPassword(password)
const keys = new Keys(password)
console.log(keys)
event.preventDefault()
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment