gpt4 book ai didi

php post密码例程?

转载 作者:可可西里 更新时间:2023-10-31 22:49:42 25 4
gpt4 key购买 nike

我很想知道如何保证 php 密码的安全。

主要问题是:如何从登录表单将密码作为安全字符串发布?

我一直在检查其他网站是如何做到这一点的,例如Facebook。当我登录 Facebook 时,我根本看不到我的密码,它看起来像是一个长的加密字符串。

如何在发布前将密码字段转换为加密字符串?这是用ajax完成的吗?

干杯柯

最佳答案

检查 HTTPS protocol

Hypertext Transfer Protocol Secure (HTTPS) is a combination of the Hypertext Transfer Protocol with the SSL/TLS protocol to provide encryption and secure identification of the server. HTTPS connections are often used for payment transactions on the World Wide Web and for sensitive transactions in corporate information systems. HTTPS should not be confused with Secure HTTP (S-HTTP) specified in RFC 2660.

如果您无法为您的站点启用 HTTPS 并且不想发布明文密码(出于明显的安全原因),请考虑使用 Challenge-Response Authentication .

只是google for various PHP/Javascript implementations并选择一个你喜欢的。

关于php post密码例程?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2280916/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com