Question: Please identify the password verification function that is NOT vulnerable to timing attacks. Question 1 0 options: def string _ compare _ 2 ( s
Please identify the password verification function that is NOT vulnerable to timing attacks.
Question options:
def stringcomparess: if lens lens: return False flag True for i in rangelens: if si si: flag False return flag def checkpasswordpassword: hardcodedpassword "xyzabchijk" if stringcomparepassword hardcodedpassword: return True else: return False
def stringcomparess: if lens lens: return False for i in rangelens: if si si: return False return True def checkpasswordpassword: hardcodedpassword "xyzabchijk" if stringcomparepassword hardcodedpassword: return True else: return False
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
