在图形密码验证中涉及html或仅涉及c,涉及c ++ [英] In Graphical password authentication is html involved or only c, c++ is involved

查看:88
本文介绍了在图形密码验证中涉及html或仅涉及c,涉及c ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<>&< a href =>< / a>< pre lang =c ++ >< pre lang =c ++>< pre lang =c ++>< pre lan g =c ++>< pre lang =c ++>< / pre>< / pre>< / pre>< / pre>< / pre>

解决方案

您正在谈论的所有人,



1.密码认证(或通常,用户认证)。

2.图形用户界面

3. C / C ++;编程语言

4.超文本标记语言。



不同。



现在,了解所有这些,然后看看它们是否存在!这个答案对你来说有点问题,但有了一点机智,你就会得到我想和你分享的内容。首先,身份验证只是对尝试访问资源或服务的用户进行身份验证的过程。您传递用户名,密码。服务器使用相同的用户名和密码检查记录(地下,检查该密码的哈希值)。无需为此创建图形用户界面。我可以创建一个使用此功能对用户进行身份验证的服务,



 authenticate.exe用户名密码





然后,我可以使用这些参数(用户名,密码)来验证用户身份。简单!这里不需要HTML或其他东西,如果你使用Python或Perl(特别是),即使是C / C ++也可以忽略。



现在,使用C / C ++创建不仅用于身份验证的程序,同时他们可以用于身份验证(阅读上面的段落)。这只是语言,出于同样的目的,我可以用C ++编写程序(如果你愿意,可以用C编写)



  #include   <  字符串 >  
#include < iostream >
#include < sstream >

bool authenticate(std :: string username,std :: string password){
// 处理用户名和密码并返回true或false
}

void main(){
std :: string username,password;
std :: cout<< 输入用户名:;
std :: getline(cin,username);
std :: cout<< 输入密码:;
std :: getline(cin,password);

if (authenticate(username,password)){
// 显示资源
} else {
exit( 0 ); // 或删除资源
}
}





现在图形用户界面在哪里? (得到我的观点?:))



现在HTML是不同的东西,它是一种标记语言,实际上在这种情况下是图形用户-interface正在运行,但您不能指望它对用户进行身份验证。需要JavaScript(在最基本级别)或其他服务器端编程(或脚本)语言,例如ASP.NET或PHP等。然后您可以对它们进行身份验证。因此,换句话说,当您创建用户界面时,在后端代码不关心界面,它只是用户为您的程序提供的输入。接口只允许用户了解输入详细信息的位置等。



在完成上述所有答案后,我仍然建议您访问一些可以向您解释这些技术的资源。



https://en.wikipedia.org/wiki/Authentication [ ^ ]

< a href =https://en.wikipedia.org/wiki/Graphical_user_interface> https://en.wikipedia.org/wiki/Graphical_user_interface [ ^ ]

https://en.wikipedia.org/wiki/HTML [ ^ ]


<>&<a href=""></a><pre lang="c++"><pre lang="c++"><pre lang="c++"><pre lang="c++"><pre lang="c++"></pre></pre></pre></pre></pre>

解决方案

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)

#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[^]


这篇关于在图形密码验证中涉及html或仅涉及c,涉及c ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆