From: jordan@hack_attack Date: Fri, 1 Jul 2016 00:36:50 +0000 (-0700) Subject: js for authorization X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fwebcc.git;a=commitdiff_plain;h=543170c8eda00b8a408a8ebe8798869f3aa678d7 js for authorization --- 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);