From ae3bf3f8a5940887e102c4d11ed7e73ba41422ed Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Mon, 10 Oct 2016 23:36:30 +0200 Subject: [PATCH] Replace confusable letters by special characters --- NewPasswordGenerator.m | 8 ++++---- iOS/ShowDetailsController.m | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/NewPasswordGenerator.m b/NewPasswordGenerator.m index efed591..e8cc4c3 100644 --- a/NewPasswordGenerator.m +++ b/NewPasswordGenerator.m @@ -59,9 +59,9 @@ for (size_t i = 0; i < _length; i++) _output[i] = - "0123456789" - "abcdefghijklmnopqrstuvwxyz" - "ABCDEFGHIJKLMNOPQRSTUVWXYZ" - ".!"[_output[i] & 0x3F]; + "123456789" + "abcdefghijkmnopqrstuvwxyz" + "ABCDEFGHJKLMNPQRSTUVWXYZ" + "#$%-=?"[_output[i] & 0x3F]; } @end diff --git a/iOS/ShowDetailsController.m b/iOS/ShowDetailsController.m index 6e78143..83c5152 100644 --- a/iOS/ShowDetailsController.m +++ b/iOS/ShowDetailsController.m @@ -128,7 +128,8 @@ clearNSMutableString(NSMutableString *string) [UIAlertAction actionWithTitle: @"OK" style: UIAlertActionStyleDefault handler: ^ (UIAlertAction *action) { - [self.navigationController popViewControllerAnimated: YES]; + [self.navigationController + popViewControllerAnimated: YES]; }]]; [self presentViewController: alert