From e981df3c8b421a110e7d4b04c946654d434170b7 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Mon, 13 Oct 2014 23:39:07 -0400 Subject: [PATCH] Fixed type of level 3 attacker. [FIXED] Type of level 3 attacker was string instead of integer. --- MasterPassword/ObjC/iOS/MPPasswordCell.m | 2 +- MasterPassword/ObjC/iOS/Settings.bundle/Root.plist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MasterPassword/ObjC/iOS/MPPasswordCell.m b/MasterPassword/ObjC/iOS/MPPasswordCell.m index 191ac8dc..079fe2aa 100644 --- a/MasterPassword/ObjC/iOS/MPPasswordCell.m +++ b/MasterPassword/ObjC/iOS/MPPasswordCell.m @@ -516,7 +516,7 @@ TimeToCrack timeToCrack; NSString *timeToCrackString = nil; id algorithm = site.algorithm?: MPAlgorithmDefault; - MPAttacker attackHardware = [[MPConfig get].siteAttacker unsignedIntegerValue]; + MPAttacker attackHardware = [[MPConfig get].siteAttacker integerValue]; if ([algorithm timeToCrack:&timeToCrack passwordOfType:site.type byAttacker:attackHardware] || [algorithm timeToCrack:&timeToCrack passwordString:password byAttacker:attackHardware]) timeToCrackString = NSStringFromTimeToCrack( timeToCrack ); diff --git a/MasterPassword/ObjC/iOS/Settings.bundle/Root.plist b/MasterPassword/ObjC/iOS/Settings.bundle/Root.plist index 6ba13e83..c0e333e3 100644 --- a/MasterPassword/ObjC/iOS/Settings.bundle/Root.plist +++ b/MasterPassword/ObjC/iOS/Settings.bundle/Root.plist @@ -126,7 +126,7 @@ To see a site's password anyway, tap and hold your finger down for a while 0 1 2 - 3 + 3