A

Admin • 833K Points
Coach

Q. Which function can be used to securely compare two strings to avoid timing attacks?

  • (A) == operator
  • (B) hmac.compare_digest()
  • (C) str.equals()
  • (D) compare()
  • Correct Answer - Option(B)
  • Views: 36
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

compare_digest provides constant time comparison to prevent timing attacks.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.