diff --git a/MasterPassword/ObjC/MPAlgorithmV1.m b/MasterPassword/ObjC/MPAlgorithmV1.m index c5720230..4d69b77e 100644 --- a/MasterPassword/ObjC/MPAlgorithmV1.m +++ b/MasterPassword/ObjC/MPAlgorithmV1.m @@ -69,8 +69,7 @@ // Determine the cipher from the first seed byte. assert([seed length]); - NSArray *typeCiphers = [[MPTypes_ciphers valueForKey:[self classNameOfType:type]] - valueForKey:[self nameOfType:type]]; + NSArray *typeCiphers = [[MPTypes_ciphers valueForKey:[self classNameOfType:type]] valueForKey:[self nameOfType:type]]; NSString *cipher = [typeCiphers objectAtIndex:seedBytes[0] % [typeCiphers count]]; trc(@"type %@, ciphers: %@, selected: %@", [self nameOfType:type], typeCiphers, cipher); @@ -81,8 +80,7 @@ uint16_t keyByte = seedBytes[c + 1]; NSString *cipherClass = [cipher substringWithRange:NSMakeRange( c, 1 )]; NSString *cipherClassCharacters = [[MPTypes_ciphers valueForKey:@"MPCharacterClasses"] valueForKey:cipherClass]; - NSString *character = [cipherClassCharacters substringWithRange:NSMakeRange( keyByte % [cipherClassCharacters length], - 1 )]; + NSString *character = [cipherClassCharacters substringWithRange:NSMakeRange( keyByte % [cipherClassCharacters length], 1 )]; trc(@"class %@ has characters: %@, index: %u, selected: %@", cipherClass, cipherClassCharacters, keyByte, character); [content appendString:character]; diff --git a/MasterPassword/ObjC/MPTypes.h b/MasterPassword/ObjC/MPTypes.h index 822180d5..903d062f 100644 --- a/MasterPassword/ObjC/MPTypes.h +++ b/MasterPassword/ObjC/MPTypes.h @@ -67,6 +67,7 @@ typedef enum { #define MPCheckpointReview @"MPCheckpointReview" #define MPCheckpointApps @"MPCheckpointApps" #define MPCheckpointApp @"MPCheckpointApp" +#define MPCheckpointEmergencyGenerator @"MPCheckpointEmergencyGenerator" #define MPSignedInNotification @"MPSignedInNotification" #define MPSignedOutNotification @"MPSignedOutNotification" diff --git a/MasterPassword/ObjC/iOS/MPUnlockViewController.m b/MasterPassword/ObjC/iOS/MPUnlockViewController.m index 8cdaead1..ed678fc9 100644 --- a/MasterPassword/ObjC/iOS/MPUnlockViewController.m +++ b/MasterPassword/ObjC/iOS/MPUnlockViewController.m @@ -246,6 +246,7 @@ - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event { if (motion == UIEventSubtypeMotionShake) { + MPCheckpoint( MPCheckpointEmergencyGenerator, nil ); [[self.view findFirstResponderInHierarchy] resignFirstResponder]; self.emergencyGeneratorContainer.alpha = 0; @@ -1037,7 +1038,7 @@ } SLComposeViewController *vc = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; - [vc setInitialText:@"I've started doing passwords properly thanks to Master Password for iOS."]; + [vc setInitialText:@"I've started doing passwords properly thanks to Master Password."]; [vc addImage:[UIImage imageNamed:@"iTunesArtwork-Rounded"]]; [vc addURL:[NSURL URLWithString:@"http://masterpasswordapp.com"]]; [self presentViewController:vc animated:YES completion:nil]; @@ -1047,7 +1048,7 @@ id shareDialog = [[MPAppDelegate get].googlePlus shareDialog]; [[[shareDialog setURLToShare:[NSURL URLWithString:@"http://masterpasswordapp.com"]] - setPrefillText:@"I've started doing passwords properly thanks to Master Password for iOS."] open]; + setPrefillText:@"I've started doing passwords properly thanks to Master Password."] open]; } - (IBAction)mail:(UIButton *)sender { diff --git a/MasterPassword/ObjC/iOS/MainStoryboard_iPhone.storyboard b/MasterPassword/ObjC/iOS/MainStoryboard_iPhone.storyboard index ce166b1c..b1508592 100644 --- a/MasterPassword/ObjC/iOS/MainStoryboard_iPhone.storyboard +++ b/MasterPassword/ObjC/iOS/MainStoryboard_iPhone.storyboard @@ -1455,7 +1455,7 @@ You could use the word wall for inspiration in finding a memorable master passw - +