libwolfssl ported
[henge/webcc.git] / html / js / auth.js
1 /*!@file
2 \brief Authorization Handling
3 \details Upon user submission of id/password, hashes password and saves
4 result in a file on VFS using hashing algorithm provided by libgcrypt.c
5 \author JEL
6 \date 2016
7 -----------------------------------------------------------------------------*/
8 /* On button press, send password to C runtime environment */
9 function userLogin()
10 {
11 var password = document.getElementById("password").value;
12 /* Call Module.execute on encrypt_password() */
13 };
14 document.getElementById("login").addEventListener("click", userLogin, false);