Add prefix for old style hashes

Add A or B prefix, like User::loadFromRow()

Bug: 69007
Change-Id: I332872933a2d4da54db8c42f64e7141efc996534
(cherry picked from commit 6f3d7607a3fbb1f60e8f0dd0c9bc322ecd7c8e7f)