简体   繁体   English

支持多种登录的Python登录系统

[英]Python Login System that supports multiple logins

This is a project that I wanted to work on. 这是我要从事的项目。 I want a program that people can enter their login details and their username and password information will be sent to another program that will check to see if the login details are right and then will tell the other program whether they can login or not. 我希望人们可以输入他们的登录详细信息的程序,并将他们的用户名和密码信息发送到另一个程序,该程序将检查登录详细信息是否正确,然后告诉另一个程序是否可以登录。

The problem is I have no idea how I will make the programs send data to each other. 问题是我不知道如何使程序互相发送数据。 If anyone could help me, maybe introduce me to some new modules that could help me, I would be very happy. 如果有人可以帮助我,或者向我介绍一些可以帮助我的新模块,我将非常高兴。

Thanks, 谢谢,

Dan

The program that you want to send the data to confirm if it'll work has to be able to allow such method of confirmation, else, it wouldn't work. 您要发送数据以确认其是否有效的程序必须能够允许这种确认方法,否则它将无法工作。 If it does, it may be that you would have to supply such to the program from the command line. 如果确实如此,则可能是您必须从命令行向程序提供此类代码。

You could try out https://pypi.python.org/pypi/EasyProcess 您可以尝试https://pypi.python.org/pypi/EasyProcess

If you're talking about a sort of client-server setup here, you could look into using sockets in order to facilitate the communications between the client and server software. 如果您在此处讨论的是一种客户端-服务器设置,则可以考虑使用套接字以促进客户端和服务器软件之间的通信。 However, I would advise that you keep in mind that sending information such as passwords over the net will probably require that they be secured as well. 但是,我建议您记住,通过网络发送信息(例如密码)可能也需要对其进行保护。

I'm sorry if I'm a little unhelpful with your project, but the vague nature of your description was such that I can only really point you towards the modules you may want to look into for accomplishing the key aspect of your task. 很抱歉,如果我对您的项目无济于事,但是您的描述含糊不清,以至于我只能真正将您指向您可能希望用来完成任务关键方面的模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM