/*!@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
+ \details Upon user submission of id/password, hashes password and
+ saves result in a file on VFS using hashing algorithm prov ided by wolfcrypt, a subsystem of wolfSSL
\author JEL
\date 2016
-----------------------------------------------------------------------------*/
function userLogin()
{
var password = document.getElementById("password").value;
- /* Call Module.execute on encrypt_password() */
+ /* Virtual Filesystem is of type IDBFS and has been setup in preRun in Module via JVM runtime environment*/
+ Module.execute(_auth_encrypt, password);
+
};
+
document.getElementById("login").addEventListener("click", userLogin, false);