From 018a544cfe39afbcc8aa2142bd544804372a7f84 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sun, 5 Feb 2012 10:31:08 +0100 Subject: [PATCH] Stored passwords completed. [FIXED] Lock keychain items while device is locked. [ADDED] Implemented Device-Private passwords by storing them in the keychain. [ADDED] Implemented encryption for stored passwords. --- MasterPassword.xcodeproj/project.pbxproj | 6 + .../MainStoryboard_iPhone.storyboard | 110 +++++++++++++++++- MasterPassword/OPAppDelegate.m | 12 +- MasterPassword/OPElementEntity.h | 8 +- MasterPassword/OPElementGeneratedEntity.h | 2 +- MasterPassword/OPElementStoredEntity.h | 2 +- MasterPassword/OPElementStoredEntity.m | 44 ++++++- MasterPassword/OPMainViewController.m | 4 +- MasterPassword/OPMenuViewController.h | 13 +++ MasterPassword/OPMenuViewController.m | 22 ++++ .../Tooltips/tip_alert_banana@2x.png | Bin 75370 -> 75370 bytes .../Resources/Tooltips/tip_alert_black@2x.png | Bin 5576 -> 5576 bytes .../Resources/Tooltips/tip_alert_gray@2x.png | Bin 5785 -> 5785 bytes .../Tooltips/tip_alert_mercury@2x.png | Bin 31051 -> 31076 bytes .../Resources/Tooltips/tip_alert_teal@2x.png | Bin 61342 -> 61360 bytes .../Resources/Tooltips/tip_alert_wood@2x.png | Bin 81377 -> 81377 bytes .../Tooltips/tip_arrow_banana@2x.png | Bin 0 -> 2630 bytes .../Resources/Tooltips/tip_arrow_black@2x.png | Bin 0 -> 2449 bytes .../Resources/Tooltips/tip_arrow_gray@2x.png | Bin 0 -> 2198 bytes .../Tooltips/tip_arrow_mercury@2x.png | Bin 0 -> 2214 bytes .../Resources/Tooltips/tip_arrow_teal@2x.png | Bin 0 -> 2531 bytes .../Resources/Tooltips/tip_arrow_wood@2x.png | Bin 0 -> 2681 bytes .../Tooltips/tip_basic_banana@2x.png | Bin 42522 -> 42522 bytes .../Resources/Tooltips/tip_basic_black@2x.png | Bin 4936 -> 5004 bytes .../Resources/Tooltips/tip_basic_gray@2x.png | Bin 4836 -> 4836 bytes .../Tooltips/tip_basic_mercury@2x.png | Bin 17315 -> 17315 bytes .../Resources/Tooltips/tip_basic_teal@2x.png | Bin 35304 -> 35304 bytes .../Resources/Tooltips/tip_basic_wood@2x.png | Bin 46640 -> 46640 bytes .../Tooltips/tip_download_banana@2x.png | Bin 57052 -> 56961 bytes .../Tooltips/tip_download_black@2x.png | Bin 8360 -> 8389 bytes .../Tooltips/tip_download_gray@2x.png | Bin 8561 -> 8561 bytes .../Tooltips/tip_download_mercury@2x.png | Bin 25362 -> 25362 bytes .../Tooltips/tip_download_teal@2x.png | Bin 47509 -> 47509 bytes .../Tooltips/tip_download_wood@2x.png | Bin 61259 -> 61259 bytes .../Tooltips/tip_large_banana@2x.png | Bin 56510 -> 56674 bytes .../Resources/Tooltips/tip_large_black@2x.png | Bin 6867 -> 6867 bytes .../Resources/Tooltips/tip_large_gray@2x.png | Bin 7325 -> 7322 bytes .../Tooltips/tip_large_mercury@2x.png | Bin 24533 -> 24533 bytes .../Resources/Tooltips/tip_large_teal@2x.png | Bin 46817 -> 46816 bytes .../Resources/Tooltips/tip_large_wood@2x.png | Bin 61100 -> 61219 bytes .../Tooltips/tip_location_banana@2x.png | Bin 54250 -> 54250 bytes .../Tooltips/tip_location_black@2x.png | Bin 7819 -> 7816 bytes .../Tooltips/tip_location_gray@2x.png | Bin 6747 -> 6835 bytes .../Tooltips/tip_location_mercury@2x.png | Bin 23302 -> 23302 bytes .../Tooltips/tip_location_teal@2x.png | Bin 45098 -> 45099 bytes .../Tooltips/tip_location_wood@2x.png | Bin 59098 -> 59103 bytes 46 files changed, 206 insertions(+), 17 deletions(-) create mode 100644 MasterPassword/OPMenuViewController.h create mode 100644 MasterPassword/OPMenuViewController.m create mode 100644 MasterPassword/Resources/Tooltips/tip_arrow_banana@2x.png create mode 100644 MasterPassword/Resources/Tooltips/tip_arrow_black@2x.png create mode 100644 MasterPassword/Resources/Tooltips/tip_arrow_gray@2x.png create mode 100644 MasterPassword/Resources/Tooltips/tip_arrow_mercury@2x.png create mode 100644 MasterPassword/Resources/Tooltips/tip_arrow_teal@2x.png create mode 100644 MasterPassword/Resources/Tooltips/tip_arrow_wood@2x.png diff --git a/MasterPassword.xcodeproj/project.pbxproj b/MasterPassword.xcodeproj/project.pbxproj index ca18fdb6..9f48446f 100644 --- a/MasterPassword.xcodeproj/project.pbxproj +++ b/MasterPassword.xcodeproj/project.pbxproj @@ -204,6 +204,7 @@ DA84819514CB521E00A2FA22 /* tip_location_teal.png in Resources */ = {isa = PBXBuildFile; fileRef = DA84817714CB521E00A2FA22 /* tip_location_teal.png */; }; DA84819614CB521E00A2FA22 /* tip_location_wood.png in Resources */ = {isa = PBXBuildFile; fileRef = DA84817814CB521E00A2FA22 /* tip_location_wood.png */; }; DA8E8E4614DD7C1D0044257E /* logo-bare.png in Resources */ = {isa = PBXBuildFile; fileRef = DA8E8E4514DD7C1D0044257E /* logo-bare.png */; }; + DA8E8E5114DE78C20044257E /* OPMenuViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = DA8E8E5014DE78C20044257E /* OPMenuViewController.m */; }; DAA3B68E14CCCEE700F35AF6 /* icon_addressbook-person@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DAA3B53814CCCEE700F35AF6 /* icon_addressbook-person@2x.png */; }; DAA3B68F14CCCEE700F35AF6 /* icon_addressbook.png in Resources */ = {isa = PBXBuildFile; fileRef = DAA3B53914CCCEE700F35AF6 /* icon_addressbook.png */; }; DAA3B69014CCCEE700F35AF6 /* icon_addressbook@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DAA3B53A14CCCEE700F35AF6 /* icon_addressbook@2x.png */; }; @@ -907,6 +908,8 @@ DA84817814CB521E00A2FA22 /* tip_location_wood.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = tip_location_wood.png; sourceTree = ""; }; DA8E8E4514DD7C1D0044257E /* logo-bare.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "logo-bare.png"; path = "Resources/logo-bare.png"; sourceTree = ""; }; DA8E8E4714DDA62D0044257E /* MasterPassword.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = MasterPassword.entitlements; sourceTree = ""; }; + DA8E8E4F14DE78C20044257E /* OPMenuViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OPMenuViewController.h; sourceTree = ""; }; + DA8E8E5014DE78C20044257E /* OPMenuViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OPMenuViewController.m; sourceTree = ""; }; DAA3B53814CCCEE700F35AF6 /* icon_addressbook-person@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_addressbook-person@2x.png"; sourceTree = ""; }; DAA3B53914CCCEE700F35AF6 /* icon_addressbook.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_addressbook.png; sourceTree = ""; }; DAA3B53A14CCCEE700F35AF6 /* icon_addressbook@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_addressbook@2x.png"; sourceTree = ""; }; @@ -1825,6 +1828,8 @@ DAE2C646148247E500BA6B10 /* OPTypeViewController.m */, DA55B29C14B38272001131B7 /* OPContentViewController.h */, DA55B29D14B38272001131B7 /* OPContentViewController.m */, + DA8E8E4F14DE78C20044257E /* OPMenuViewController.h */, + DA8E8E5014DE78C20044257E /* OPMenuViewController.m */, DA34DA1414B1BEA100F721C1 /* OPTypes.h */, DA34DA1514B1BEA100F721C1 /* OPTypes.m */, DA007F5014B24DCC00251337 /* OPConfig.h */, @@ -3040,6 +3045,7 @@ DA0A848C14C4DFCB0090EA8E /* OPElementGeneratedEntity.m in Sources */, DAA3B81414CDC77100F35AF6 /* jquery-1.6.1.min.js in Sources */, DA65570614D731F000841C99 /* OPGuideViewController.m in Sources */, + DA8E8E5114DE78C20044257E /* OPMenuViewController.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/MasterPassword/MainStoryboard_iPhone.storyboard b/MasterPassword/MainStoryboard_iPhone.storyboard index d38e0936..f372393d 100644 --- a/MasterPassword/MainStoryboard_iPhone.storyboard +++ b/MasterPassword/MainStoryboard_iPhone.storyboard @@ -241,7 +241,7 @@ The passwords aren't saved anywhere. This is a major advantage: if you loose yo -