Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

AWS Cloud

Why protect a stored OTP?

A database copy plus a plain hash lets someone guess from a small six-digit space. Use a keyed HMAC and keep its key separate from the table. Do not log the OTP. Check expiry and failed attempts. One conditional update marks the OTP used and removes the digest.

Why protect a stored OTP?. A database copy plus a plain hash lets someone guess from a small six-digit space. Use a keyed HMAC and keep its key separate from the table. Do not log the OTP. Check expiry and failed attempts. One conditional update marks the OTP used and removes the digest.
Why protect a stored OTP? · Download PNG
Read card text

What this card says

Risk

A database copy plus a plain hash lets someone guess from a small six-digit space.

Secret key

Use a keyed HMAC and keep its key separate from the table. Do not log the OTP.

One-time check

Check expiry and failed attempts. One conditional update marks the OTP used and removes the digest.

Open the lesson

See all AWS revision cards