From 543170c8eda00b8a408a8ebe8798869f3aa678d7 Mon Sep 17 00:00:00 2001 From: "jordan@hack_attack" Date: Thu, 30 Jun 2016 17:36:50 -0700 Subject: [PATCH] js for authorization --- src/html/js/auth.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/html/js/auth.js diff --git a/src/html/js/auth.js b/src/html/js/auth.js new file mode 100644 index 0000000..d399d6f --- /dev/null +++ b/src/html/js/auth.js @@ -0,0 +1,14 @@ +/*!@file + \brief Authorization Handling + \details Upon user submission of id/password, hashes password and saves + result in a file on VFS using hashing algorithm provided by libgcrypt.c + \author JEL + \date 2016 + -----------------------------------------------------------------------------*/ +/* On button press, send password to C runtime environment */ +function userLogin() +{ + var password = document.getElementById("password").value; + /* Call Module.execute on encrypt_password() */ +}; +document.getElementById("login").addEventListener("click", userLogin, false); -- 2.18.0