duanbi1983 2019-08-02 13:17
浏览 305

CHAP身份验证对安全的https连接真的有用吗?

I have a website that used to work only over http, so since the connection was not secure, I used a CHAP authentication scheme to make logins more secure (even if the passwords were hashed, those hashes would have been sent in the clear otherwise, and could be intercepted to login with them, so using CHAP prevented that).

Since some time we're using https, so connections are encrypted. Isn't it redundant to keep using CHAP or is it still a good idea to keep using this scheme? (even if it makes logins a little more complicated, since you need the first step of getting the "challenge string" before the users send their login details, then concatenating and re-hashing the password string in the client before sending to the server).

My question arises because I'm going to develop an API which uses this website's database for the login information, and I don't want to make it more difficult than necessary for users of said API.

  • 写回答

1条回答 默认 最新

  • dongzhidian3538 2019-08-05 11:47
    关注

    Based on the limited information I had about CHAP I'd say you wouldn't want to use it with HTTPS because: - it's not needed (your data are encrypted anyway) - it makes the authentication workflow more complex - the server needs to store a password in clear text

    That's said, the Basic authentication scheme certainly isn't perfect and HTTPS only protects you from somebody else seeing the plain-text form of a password. The Basic Authentication scheme still suffers from various issues larger than necessary attack window (password repeatedly sent with every request), caching (Browser and other tools like git) can cache credentials, accidentally exposing username&password combination in URLs stored in configuration, etc.

    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘