tecladocode / advanced-rest-api-lecture-codes

Start and end codes for the lectures of our Advanced REST APIs with Flask and Python course
30 stars 73 forks source link

Updated code to use hmac's compare_disgest instead werkzeug's safe_str_cmp #3

Closed LUS24 closed 2 years ago

LUS24 commented 2 years ago

safe_str_cmp has been removed from the werkzeug package:

The recommendation is to use hmac.compare_digest instead.

This PR changes all the lecture codes to use hmac.compare_digest instead of werkzeug.safe_str_cmp.