Python Password Protection

前端 未结 8 1641
长情又很酷
长情又很酷 2020-12-16 20:23

I am a beginner so if this question sounds stupid, please bear with me.

I am wondering that when we write code for username/password check in python, if it is not c

8条回答
  •  一个人的身影
    2020-12-16 21:02

    On a server only server administrators should have the right to change the code. Hence, to change the code you have to have administrator access, and if you do, then you can access everything anyway. :-)

    The same goes for a client program. If the only security is the password check, you don't need to get around the password check, you can just read the data files directly.

    In both cases, to prevent people that has access to the files from reading those files a password check is not enough. You have to encrypt the data.

提交回复
热议问题