{"id":3115,"date":"2022-03-25T22:09:00","date_gmt":"2022-03-25T21:09:00","guid":{"rendered":"https:\/\/www.albertopasca.it\/whiletrue\/?p=3115"},"modified":"2023-06-26T01:30:42","modified_gmt":"2023-06-25T23:30:42","slug":"ios-secure-app-sensitive-information","status":"publish","type":"post","link":"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/","title":{"rendered":"iOS &#8211; Secure app sensitive information"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Today I want to share a fresh new <strong>Swift Package<\/strong> SDK that helps you to hide sensitive informations on your app, <em>like banking apps<\/em>, in a easy way!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You&#8217;ll be notified via callback (<em>optional<\/em>) when a defined rule occur, and apply the right custom protection you prefer or simply use the integrated blur that cover your app automatically.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Available protections<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">While writing this post, the <em>SDK<\/em> provide these protections callbacks:<\/p>\n\n\n\n<!--more-->\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>QuickTime<\/strong> screen recording<\/td><td class=\"has-text-align-left\" data-align=\"left\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"64\" height=\"64\" class=\"wp-image-3152\" style=\"width: 64px;\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/quicktime_18928-1.png?resize=64%2C64\" alt=\"iOS avoid QuickTime recording\"><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">iOS <strong>screen recording<\/strong><\/td><td class=\"has-text-align-left\" data-align=\"left\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"64\" height=\"64\" class=\"wp-image-3120\" style=\"width: 64px;\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/recording.png?resize=64%2C64\" alt=\"iOS block screen recording\"><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">iOS native <strong>Airplay<\/strong> \/ <strong>Mirroring<\/strong><\/td><td class=\"has-text-align-left\" data-align=\"left\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"64\" height=\"64\" class=\"wp-image-3121\" style=\"width: 64px;\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/screen.png?resize=64%2C64\" alt=\"iOS prevent block mirroring\"><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Background app <strong>screenshot cache<\/strong><\/td><td class=\"has-text-align-left\" data-align=\"left\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"64\" height=\"64\" class=\"wp-image-3119\" style=\"width: 64px;\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/data-cleaning.png?resize=64%2C64\" alt=\"iOS avoid cache background app screenshot\"><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">User taken <strong>screenshots<\/strong><\/td><td class=\"has-text-align-left\" data-align=\"left\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"64\" height=\"64\" class=\"wp-image-3122\" style=\"width: 64px;\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/landscape.png?resize=64%2C64\" alt=\"iOS detect prevent screenshots\"><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How it works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Simply, add a view on top of your root window, in order to hide sensitive content behind.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Imagine that you app is this one:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"547\" height=\"1024\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.24.15-547x1024.png?resize=547%2C1024&#038;ssl=1\" alt=\"\" class=\"wp-image-3132\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.24.15.png?resize=547%2C1024&amp;ssl=1 547w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.24.15.png?resize=160%2C300&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.24.15.png?resize=768%2C1438&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.24.15.png?resize=820%2C1536&amp;ssl=1 820w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.24.15.png?w=1038&amp;ssl=1 1038w\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">When one of the defined rules to apply is recognized, a <strong>custom view<\/strong> or a <strong>blurred view<\/strong> can appear on top:<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"547\" height=\"1024\" data-id=\"3130\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.26.50-547x1024.png?resize=547%2C1024&#038;ssl=1\" alt=\"\" class=\"wp-image-3130\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.26.50.png?resize=547%2C1024&amp;ssl=1 547w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.26.50.png?resize=160%2C300&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.26.50.png?resize=768%2C1438&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.26.50.png?resize=820%2C1536&amp;ssl=1 820w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.26.50.png?w=1038&amp;ssl=1 1038w\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" \/><figcaption class=\"wp-element-caption\">Background catch with custom view<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"547\" height=\"1024\" data-id=\"3129\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.27.18-547x1024.png?resize=547%2C1024&#038;ssl=1\" alt=\"\" class=\"wp-image-3129\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.27.18.png?resize=547%2C1024&amp;ssl=1 547w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.27.18.png?resize=160%2C300&amp;ssl=1 160w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.27.18.png?resize=768%2C1438&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.27.18.png?resize=820%2C1536&amp;ssl=1 820w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-25-alle-10.27.18.png?w=1038&amp;ssl=1 1038w\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" \/><figcaption class=\"wp-element-caption\">Background catch with integrated blur<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"473\" height=\"1024\" data-id=\"3131\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Screen-Shot-2022-03-25-at-10.29.17-473x1024.png?resize=473%2C1024&#038;ssl=1\" alt=\"\" class=\"wp-image-3131\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Screen-Shot-2022-03-25-at-10.29.17.png?resize=473%2C1024&amp;ssl=1 473w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Screen-Shot-2022-03-25-at-10.29.17.png?resize=139%2C300&amp;ssl=1 139w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Screen-Shot-2022-03-25-at-10.29.17.png?resize=768%2C1663&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Screen-Shot-2022-03-25-at-10.29.17.png?resize=709%2C1536&amp;ssl=1 709w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Screen-Shot-2022-03-25-at-10.29.17.png?resize=946%2C2048&amp;ssl=1 946w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Screen-Shot-2022-03-25-at-10.29.17.png?w=1125&amp;ssl=1 1125w\" sizes=\"auto, (max-width: 473px) 100vw, 473px\" \/><figcaption class=\"wp-element-caption\">Screen recording detection<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can handle more of these rules, the code is <a href=\"https:\/\/github.com\/elpsk\/ScreenSecuritySDK\" target=\"_blank\" rel=\"noreferrer noopener\">on Github<\/a>, feel free to open merge requests.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also apply a custom behavior when detected (show an alert, send an API request, or what you prefer&#8230;).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Code usage.<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add the repo directly in Swift Package Manager through <em>XCode<\/em> and import the SDK (generally in <strong>SceneDelegate<\/strong> or <strong>AppDelegate<\/strong>, because you need the window):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"swift\" class=\"language-swift\">import ScreenSecuritySDK<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Next in your <strong>sceneWillConnect<\/strong>, initialize the SDK:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"swift\" class=\"language-swift\">var screenSecurity: ScreenSecurity?\n[...]\nfunc scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {\n    screenSecurity = ScreenSecurity( window! )\n}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h5 class=\"wp-block-heading\">Creating security rules<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Allowed types are defined in this enum:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"swift\" class=\"language-swift\">case quickTime\ncase screenRecording\ncase mirroring\ncase screenCache\ncase screenshot<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can create the rules you prefer, in this way:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"swift\" class=\"language-swift\">let mirroringRule = ScreenSecurityRules {\n    $0.type = .mirroring\n    $0.callback = self.mirrorDetected\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In every rule you can add a <strong>type<\/strong>, that is mandatory and a <strong>callback<\/strong> that is optional and can be used <em>inline<\/em> or with a <em>custom defined function<\/em> (as you prefer).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"swift\" class=\"language-swift\">\/\/ example as custom callback\nvar mirrorDetected: (Any?, Bool) -&gt; Void = \n  { (arg: Any?, status: Bool) -&gt; Void in\n    print(\"mirrorDetected: \\(status)\")\n}\n\n\/\/ example of inline callback\nlet mirroringRule = ScreenSecurityRules {\n    $0.type = .mirroring\n    $0.callback = (arg: Any?, status: Bool) -&gt; Void in {\n\t    print(\"mirrorDetected: \\(status)\")\n    }\n}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h5 class=\"wp-block-heading\">ScreenCache extra settings<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">In case you need the <strong>screenCache<\/strong> rule, you need also to add the <strong>sceneDelegate<\/strong> or <strong>appDelegate<\/strong> param:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"swift\" class=\"language-swift\">let screenCacheRule = ScreenSecurityRules {\n    $0.type = .screenCache\n    $0.callback = self.screenCacheDetected\n    $0.sceneDelegate = self \/\/ one of these\n    $0.appDelegate = self \/\/ one of these\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You need also to <em>inform the SDK<\/em> when the app-lifecycle methods are called, and you need to call the&nbsp;<code>screenSecurity?.listen()<\/code>&nbsp;method in these delegates:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"swift\" class=\"language-swift\">func sceneDidBecomeActive(_ scene: UIScene) {\n    screenSecurity?.listen(type: .didBecomeActive)\n}\n\nfunc sceneWillResignActive(_ scene: UIScene) {\n    screenSecurity?.listen(type: .willResignActive)\n}\n\nfunc sceneWillEnterForeground(_ scene: UIScene) {\n    screenSecurity?.listen(type: .willEnterForeground)\n}\n\nfunc sceneDidEnterBackground(_ scene: UIScene) {\n    screenSecurity?.listen(type: .didEnterBackground)\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">If you need to go deep on how iOS save automatically the screenshot of your app when is in background, take a read here: <a href=\"https:\/\/www.albertopasca.it\/whiletrue\/ios-data-leakage-app-background-cache\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.albertopasca.it\/whiletrue\/ios-data-leakage-app-background-cache\/<\/a> .<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h5 class=\"wp-block-heading\">Composing rules<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Now, create the rules your prefer and next configure the SDK passing the rules and the settings needed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"swift\" class=\"language-swift\">var rules = [ScreenSecurityRules]()\nrules = [\n    mirroringRule,\n    quickTimeRule,\n    screenRecordingRule,\n    screenCacheRule,\n    screenshotRule\n]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and pass it to initializer<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"swift\" class=\"language-swift\">screenSecurity?.configure(rules: rules, autoBlur: true)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>configure<\/strong> method take as parameters:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>rules<\/strong>: your custom created rules<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>autoBlur<\/strong>: to use integrated automatic blur<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>customView<\/strong>: UIVIew, if you want to use your custom view + logo<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h5 class=\"wp-block-heading\">Add a custom view instead of blur<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">If you prefer to use your custom view, you can pass it creating a new UIView, simply:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"swift\" class=\"language-swift\">let customView = UIView(frame: self.window!.bounds)\ncustomView.backgroundColor = .red.withAlphaComponent(0.9)\n\nlet image = UIImage(named: \"logo\")!\nlet midX = UIScreen.main.bounds.midX - 200 \/ 2\nlet midY = UIScreen.main.bounds.midY - 100\nlet imageView = UIImageView(frame: CGRect(\n    x: midX,\n    y: midY,\n    width: 200,\n    height: 100))\nimageView.image = image\nimageView.contentMode = .scaleAspectFit\nimageView.backgroundColor = .clear\ncustomView.addSubview(imageView)\n\nscreenSecurity?.configure(rules: rules, autoBlur: false, customOverlay: customView)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Build and run.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Open points:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>user screenshots<\/strong> actually are not blocked, only informed. <strong>Hint<\/strong>: if your app use the camera roll, you can delete latest taken picture automatically (that is the screenshot)&#8230; &#x1f92b;<\/li>\n\n\n\n<li>SDK is under development<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Merge requests are welcome!<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-vivid-green-cyan-color has-css-opacity has-vivid-green-cyan-background-color has-background\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Repo GitHub \/ Swift Package Manager here: <a href=\"https:\/\/github.com\/elpsk\/ScreenSecuritySDK\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/elpsk\/ScreenSecuritySDK<\/a> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Inspired by: <a href=\"https:\/\/screenshieldkit.com\">https:\/\/screenshieldkit.com<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">App cache: <a href=\"https:\/\/www.albertopasca.it\/whiletrue\/ios-data-leakage-app-background-cache\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.albertopasca.it\/whiletrue\/ios-data-leakage-app-background-cache\/<\/a>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I want to share a fresh new Swift Package SDK that helps you to hide sensitive informations on your app, like banking apps, in a easy way! You&#8217;ll be notified via callback (optional) when a defined rule occur, and apply the right custom protection you prefer or simply use the integrated blur that cover <a class=\"read-more\" href=\"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":false,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[1047,961,610,1046,1048,647,1044,1049,46],"class_list":["post-3115","post","type-post","status-publish","format-standard","hentry","category-generic","tag-block","tag-blur","tag-package","tag-quicktime","tag-secure","tag-security","tag-sensitive","tag-shield","tag-swift"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>iOS - Secure app sensitive information - while (true) {\u00a0}<\/title>\n<meta name=\"description\" content=\"Secure your iOS app hiding sensitive informations, detecting screen recording, mirroring, screenshots and more...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"iOS - Secure app sensitive information - while (true) {\u00a0}\" \/>\n<meta property=\"og:description\" content=\"Secure your iOS app hiding sensitive informations, detecting screen recording, mirroring, screenshots and more...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/\" \/>\n<meta property=\"og:site_name\" content=\"while (true) {\u00a0}\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-25T21:09:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-25T23:30:42+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/quicktime_18928-1.png\" \/>\n<meta name=\"author\" content=\"Alberto Pasca\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"iOS \u2013 Secure app sensitive information\" \/>\n<meta name=\"twitter:description\" content=\"Secure your app hiding sensitive informations, easily.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Screen-Shot-2022-03-25-at-10.29.17.png?fit=1125%2C2436&ssl=1\" \/>\n<meta name=\"twitter:creator\" content=\"@lupasca\" \/>\n<meta name=\"twitter:site\" content=\"@lupasca\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alberto Pasca\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-secure-app-sensitive-information\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-secure-app-sensitive-information\\\/\"},\"author\":{\"name\":\"Alberto Pasca\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"headline\":\"iOS &#8211; Secure app sensitive information\",\"datePublished\":\"2022-03-25T21:09:00+00:00\",\"dateModified\":\"2023-06-25T23:30:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-secure-app-sensitive-information\\\/\"},\"wordCount\":466,\"publisher\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"image\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-secure-app-sensitive-information\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/quicktime_18928-1.png\",\"keywords\":[\"block\",\"blur\",\"package\",\"quicktime\",\"secure\",\"security\",\"sensitive\",\"shield\",\"swift\"],\"articleSection\":[\"generic\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-secure-app-sensitive-information\\\/\",\"url\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-secure-app-sensitive-information\\\/\",\"name\":\"iOS - Secure app sensitive information - while (true) {\u00a0}\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-secure-app-sensitive-information\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-secure-app-sensitive-information\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/quicktime_18928-1.png\",\"datePublished\":\"2022-03-25T21:09:00+00:00\",\"dateModified\":\"2023-06-25T23:30:42+00:00\",\"description\":\"Secure your iOS app hiding sensitive informations, detecting screen recording, mirroring, screenshots and more...\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-secure-app-sensitive-information\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-secure-app-sensitive-information\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-secure-app-sensitive-information\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/quicktime_18928-1.png?fit=64%2C64&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/quicktime_18928-1.png?fit=64%2C64&ssl=1\",\"width\":64,\"height\":64,\"caption\":\"iOS avoid QuickTime recording\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-secure-app-sensitive-information\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"iOS &#8211; Secure app sensitive information\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#website\",\"url\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/\",\"name\":\"while (true) {\u00a0}\",\"description\":\"notes from a developer, tutorials, how-to, ideas\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\",\"name\":\"Alberto Pasca\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"caption\":\"Alberto Pasca\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\"},\"description\":\"Software engineer @ Pirelli &amp; C. S.p.A. with a strong passion for mobile \uf8ff development, security, and connected things.\",\"sameAs\":[\"https:\\\/\\\/www.albertopasca.it\",\"albertopasca\",\"https:\\\/\\\/x.com\\\/lupasca\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"iOS - Secure app sensitive information - while (true) {\u00a0}","description":"Secure your iOS app hiding sensitive informations, detecting screen recording, mirroring, screenshots and more...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/","og_locale":"en_US","og_type":"article","og_title":"iOS - Secure app sensitive information - while (true) {\u00a0}","og_description":"Secure your iOS app hiding sensitive informations, detecting screen recording, mirroring, screenshots and more...","og_url":"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/","og_site_name":"while (true) {\u00a0}","article_published_time":"2022-03-25T21:09:00+00:00","article_modified_time":"2023-06-25T23:30:42+00:00","og_image":[{"url":"http:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/quicktime_18928-1.png","type":"","width":"","height":""}],"author":"Alberto Pasca","twitter_card":"summary_large_image","twitter_title":"iOS \u2013 Secure app sensitive information","twitter_description":"Secure your app hiding sensitive informations, easily.","twitter_image":"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/Screen-Shot-2022-03-25-at-10.29.17.png?fit=1125%2C2436&ssl=1","twitter_creator":"@lupasca","twitter_site":"@lupasca","twitter_misc":{"Written by":"Alberto Pasca","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/#article","isPartOf":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/"},"author":{"name":"Alberto Pasca","@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"headline":"iOS &#8211; Secure app sensitive information","datePublished":"2022-03-25T21:09:00+00:00","dateModified":"2023-06-25T23:30:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/"},"wordCount":466,"publisher":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"image":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/#primaryimage"},"thumbnailUrl":"http:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/quicktime_18928-1.png","keywords":["block","blur","package","quicktime","secure","security","sensitive","shield","swift"],"articleSection":["generic"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/","url":"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/","name":"iOS - Secure app sensitive information - while (true) {\u00a0}","isPartOf":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/#primaryimage"},"image":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/#primaryimage"},"thumbnailUrl":"http:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/quicktime_18928-1.png","datePublished":"2022-03-25T21:09:00+00:00","dateModified":"2023-06-25T23:30:42+00:00","description":"Secure your iOS app hiding sensitive informations, detecting screen recording, mirroring, screenshots and more...","breadcrumb":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/#primaryimage","url":"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/quicktime_18928-1.png?fit=64%2C64&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2022\/03\/quicktime_18928-1.png?fit=64%2C64&ssl=1","width":64,"height":64,"caption":"iOS avoid QuickTime recording"},{"@type":"BreadcrumbList","@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-secure-app-sensitive-information\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.albertopasca.it\/whiletrue\/"},{"@type":"ListItem","position":2,"name":"iOS &#8211; Secure app sensitive information"}]},{"@type":"WebSite","@id":"https:\/\/www.albertopasca.it\/whiletrue\/#website","url":"https:\/\/www.albertopasca.it\/whiletrue\/","name":"while (true) {\u00a0}","description":"notes from a developer, tutorials, how-to, ideas","publisher":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.albertopasca.it\/whiletrue\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac","name":"Alberto Pasca","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","caption":"Alberto Pasca"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g"},"description":"Software engineer @ Pirelli &amp; C. S.p.A. with a strong passion for mobile \uf8ff development, security, and connected things.","sameAs":["https:\/\/www.albertopasca.it","albertopasca","https:\/\/x.com\/lupasca"]}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/3115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/comments?post=3115"}],"version-history":[{"count":33,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/3115\/revisions"}],"predecessor-version":[{"id":3223,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/3115\/revisions\/3223"}],"wp:attachment":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/media?parent=3115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/categories?post=3115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/tags?post=3115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}