Update password check for WAPI

Do not allow arbitrarily large passwords.

Bug: 288050324
Change-Id: I15f3aff373af56c253a50c308d886a7acf661e59
Test: compile
2 files changed