Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
<>&<a href=""></a><pre lang="c++"><pre lang="c++"><pre lang="c++"><pre lang="c++"><pre lang="c++"></pre></pre></pre></pre></pre>
Posted

1 solution

All of them that you are talking about,

1. Password authentication (or generally, user authentication).
2. Graphical user-interface
3. C/C++; the programming language
4. Hyper-text markup language.

are different.

Now, understand them all and then see if they are or not! This answer is a bit of a question to you, but with a little wit you will get what I want to share with you here. First of all, the authentication is just a process that authenticates the user trying to access a resource or a service. You pass the username, password. Server checks for the record with same username and the password (underground, the hash of that password is checked against). There is no need to create a graphical user-interface for that. I can create a service that authenticates users using this,

authenticate.exe username password


Then, I can use these arguments (username, password) to authenticate the user. Simple! No need of HTML here or other stuff, even C/C++ can be ignored if you are using Python or Perl (specifically).

Now, C/C++ are used to create programs that are not only used for authentication, on the same hand they can be used for authentication (read the above paragraph). That is just the language, for the same purpose I can write the program in C++ (or C if you prefer)

C++
#include <string>
#include <iostream>
#include <sstream>

bool authenticate (std::string username, std::string password) {
  // process the username and password and return true or false
}

void main() {
  std::string username, password;
  std::cout << "Enter username: ";
  std::getline(cin, username);
  std::cout << "Enter password: ";
  std::getline(cin, password);

  if(authenticate (username, password)) {
     // show the resource
  } else {
     exit(0); // or remove the resource
  }
}


Where is the graphical user-interface now? (Get my point? :) )

Now the HTML is something different, it is a markup language, indeed in this case graphical user-interface comes in action, but you cannot expect it to authenticate users. JavaScript (at the very basic level) or other server-side programming (or scripting) language is required, such as ASP.NET or PHP etc. Then you can authenticate them. So, in other words when you create a user-interface, on the back end the code doesn't care about the interface, it is just the input that user provides your programs with. Interfaces just allow users to understand where to input what details and so on.

I would still recommend, after all of the above answer, that you pay a visit to some resources that will explain these technologies to you.

https://en.wikipedia.org/wiki/Authentication[^]
https://en.wikipedia.org/wiki/Graphical_user_interface[^]
https://en.wikipedia.org/wiki/HTML[^]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900