Generate keys and log them to the console

parent 4e0e589d
...@@ -36,11 +36,6 @@ ...@@ -36,11 +36,6 @@
</form> </form>
<script> <script>
// Generate keys from password
function generateKeysFromPassword(password) {
console.log(`Generate keys from password: ${password}`)
}
// Main // Main
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
document.getElementById('password').focus() document.getElementById('password').focus()
...@@ -49,7 +44,9 @@ ...@@ -49,7 +44,9 @@
const form = event.target const form = event.target
const password = form.elements.password.value const password = form.elements.password.value
generateKeysFromPassword(password) const keys = new Keys(password)
console.log(keys)
event.preventDefault() 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