Back end password encryption vs hashing

前端 未结 2 839
無奈伤痛
無奈伤痛 2021-01-14 08:45

I have questions regarding the best way to secure the authentication of users.

I have come across a web application that encrypts the user password in the <

2条回答
  •  孤独总比滥情好
    2021-01-14 09:45

    Yes, your analysis is correct, this is insecure.

    It would certainly fail any formal audit, e.g. PCI-DSS. the developers/operators may argue that the asset these accounts provide access to is of little value and hence they have no need to provide such a level of protection, however they still have a duty of care to their customers - and the majority of people will use the same password for different sites/services.

    It does provide a means for users to "recover" their passwords without the complexity of creating an expiring OTP - however mailing a plain text password further undermines security.

    Indeed, even if an attacker only had access to the encrypted password data (particularly if it contained a known encrypted value / does not use initialization vectors) it may be possible to derive the encryption key.

提交回复
热议问题