An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Previous Thread
Next Thread
Print Thread
Opening an encrypted & compressed disk in Dropbox
#24827 01/24/13 11:21 AM
Joined: Aug 2009
OP Offline

Joined: Aug 2009
I have an encrypted and compressed disk image on Dropbox. The DMG was originally a .doc (Word) file. When I access this file from my desktop, it opens as expected; Keychain does its thing and voilà!

But when I access this file from my iPhone 5, I am advised that the file type is unknown (and can’t be opened). Other .doc files can easily be created and read; it is only these DMGs that cause the angst.

Is this issue a result of not having DU on my iPhone?

Is there a solution for this or am I restricted to only accessing unencrypted and unstuffed vanilla files?


Harv
27" i7 iMac (10.13.6), iPhone Xs Max (12.1)

Those who can make you believe absurdities can make you commit atrocities. ~Voltaire
Re: Opening an encrypted & compressed disk in Dropbox
Pendragon #24828 01/24/13 02:20 PM
Joined: Aug 2009
Likes: 16
Moderator
Online
Moderator

Joined: Aug 2009
Likes: 16
I don't have anything available that I can test my thesis with at the moment, so please take my comments with a grain of salt. IOS does not support a file system like that found in OS X. Therefore there is no DU nor is one needed. DMG files are based on and use a file system that mirrors the one in OS X. So an iOS device does not know how to handle the file system in a DMG. Similarly iOS would have no idea what to do with the directory or files in a DMG if it were to unpack one. Applications in iOS maintain their files as open objects or in the cloud. Dropbox itself provides a rudimentary file system to contain the files it manages and those are stored in a cloud provided by Dropbox..

You are stuck with unstuffed vanilla files.

Last edited by joemikeb; 01/24/13 03:22 PM.

If we knew what it was we were doing, it wouldn't be called research, would it?

— Albert Einstein
Re: Opening an encrypted & compressed disk in Dropbox
Pendragon #24829 01/24/13 07:13 PM
Joined: Aug 2009
Offline

Joined: Aug 2009
it's possible that the necessary API's exist in iOS to mount a disk image, but there's no handler associated with .DMG to call the mount. diskutill itself probably doesn't exist as a part of the regular iOS installation. It's what normally mounts disk images, or any other volume that is trying to attach, by calling the appropriate APIs.

The necessary security framework to access keychains may not exist either. I don't think there's any implementation of keychains in iOS.


I work for the Department of Redundancy Department
Re: Opening an encrypted & compressed disk in Dropbox
Pendragon #24830 01/24/13 07:48 PM
Joined: Aug 2009
Likes: 8
Online

Joined: Aug 2009
Likes: 8
Originally Posted By: Pendragon
Is there a solution for this or am I restricted to only accessing unencrypted and unstuffed vanilla files?


You can use Dropbox to access encrypted (but not compressed) files. I do that for some of my financial files.


On a Mac since 1984.
Currently: 24" M1 iMac, M2 Pro Mac mini with 27" BenQ monitor, M2 Macbook Air, MacOS 14.x; iPhones, iPods (yes, still) and iPads.
Re: Opening an encrypted & compressed disk in Dropbox
Ira L #24833 01/25/13 02:56 PM
Joined: Aug 2009
OP Offline

Joined: Aug 2009
Many thanks to you all. I suspected my problem was as you noted.

But, Ira, I made an encrypted file as suggested and omitted the compression step, but I am still unable to open the file on my iPhone 5.

Operator error (again)?


Harv
27" i7 iMac (10.13.6), iPhone Xs Max (12.1)

Those who can make you believe absurdities can make you commit atrocities. ~Voltaire
Re: Opening an encrypted & compressed disk in Dropbox
Pendragon #24834 01/25/13 03:08 PM
Joined: Aug 2009
Likes: 8
Online

Joined: Aug 2009
Likes: 8
Originally Posted By: Pendragon

But, Ira, I made an encrypted file as suggested and omitted the compression step, but I am still unable to open the file on my iPhone 5.

Operator error (again)?


It may be a characteristic of the specific software. What type of file and trying to open it with which app?

For example, the app on my iPhone that opens the encrypted file is opening a file of its own type. I have not tried generic files with multiple apps, and even then, perhaps not every app can do it. Alas.


On a Mac since 1984.
Currently: 24" M1 iMac, M2 Pro Mac mini with 27" BenQ monitor, M2 Macbook Air, MacOS 14.x; iPhones, iPods (yes, still) and iPads.
Re: Opening an encrypted & compressed disk in Dropbox
Pendragon #24835 01/25/13 10:18 PM
Joined: Aug 2009
Likes: 1
Offline

Joined: Aug 2009
Likes: 1
iOS devices can not open or use a .dmg, full stop. If they could, it would open the door to distributing apps outside of the Apple App Store.


Photo gallery, all about me, and more: www.xeromag.com/franklin.html
Re: Opening an encrypted & compressed disk in Dropbox
tacit #24838 01/26/13 11:41 AM
Joined: Aug 2009
OP Offline

Joined: Aug 2009
Thanks, Tacit.

I had considered OS incompatibility, but it never dawned on me that the root of the issue relates to the distribution of App Store apps via .dmg.

Still, I wonder if there is a cheap encryption app that works on both my DT and iPhone. I just want to encrypt a file on my DT and decrypt it on my iPhone. Storing it on Dropbox is a plus, but not a requirement.


Harv
27" i7 iMac (10.13.6), iPhone Xs Max (12.1)

Those who can make you believe absurdities can make you commit atrocities. ~Voltaire
Re: Opening an encrypted & compressed disk in Dropbox
Pendragon #24841 01/27/13 12:35 AM
Joined: Aug 2009
Offline

Joined: Aug 2009
Originally Posted By: Pendragon
Still, I wonder if there is a cheap encryption app that works on both my DT and iPhone. I just want to encrypt a file on my DT and decrypt it on my iPhone. Storing it on Dropbox is a plus, but not a requirement.

Work in which app on your iPhone?

That's not a rhetorical question. Every file that gets opened has to be opened by some application. Applications announce which formats they're able to open, and never get an opportunity to open any file they don't claim to be able to open.

Sandboxing on iOS is so tight that applications cannot even learn what other apps are installed, let alone what formats they can read. The closest they can come is to ask the OS to offer a file up for grabs. The OS (which does know) will construct a list of compatible apps and ask the user to pick one. That app will be told "some other app, I'm not saying which one, is offering up this file which I've given you temporary read-only access to. If you're interested, you can make your own copy of it, but you've gotta do it right now because your access is going to go away post haste." The program offering up the file never learns which app (if any) took the file, or even which apps were on the list.

That's how Mail passes attachments to other apps, and how Drop Box hands files off to other apps. Any app can pass files to Drop Box, because it claims to be able to open anything.

If your word processing application cannot already open encrypted files, compressed files, DMGs, etc., there's no way you can make it open one. The best you can do is write your own app that recognizes the encrypted file, decrypts it, and offers the decrypted file up for grabs. It will never know which, if any, application accepted the grab and made a copy. You will be forced to place the decrypted file on disk (well, Flash), but can delete it immediately afterwards.

Or maybe someone's already done that? Visit the iTunes App Store and search for "decryption". There are some apps there that may meet your needs.

Usage might be something like: you take a .doc file on your Mac and compress it to a .gz, which you then encrypt to a .pgp file. Put that in Drop Box. Drop Box would offer up the .pgp file, which the special purpose app would decrypt and expand back to a .doc file, which it would then throw out for grabs. The user would be confronted with two pop-up menus, first to choose the app to do the decryption/expansion, and then again to choose the app to consume the resulting .doc file. Two more user interactions to get the edited file compressed and encrypted and back to Drop Box.

There's a tradeoff between security and convenience. Apple puts the priority on security.

Re: Opening an encrypted & compressed disk in Dropbox
ganbustein #24844 01/27/13 05:33 PM
Joined: Aug 2009
OP Offline

Joined: Aug 2009
Originally Posted By: ganbustein
There's a tradeoff between security and convenience. Apple puts the priority on security.


Indeed that is the rub. Well, that all that goes with Apple's Sandbox…

As my wants/requirements are small and the consequence of compromise are negligible, me thinks I'll just opt for a home made simple algorithm. Clearly, one could brute force the solution, but that is unlikely.

Now, re my numbered Credit Suisse account in the Caymans, ah, that is a different matter.

Always, my thanks kind sir, for the most enlightening (and educational) tutorial.


Harv
27" i7 iMac (10.13.6), iPhone Xs Max (12.1)

Those who can make you believe absurdities can make you commit atrocities. ~Voltaire

Moderated by  cyn, dianne 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.4.33 Page Time: 0.022s Queries: 34 (0.015s) Memory: 0.6213 MB (Peak: 0.7099 MB) Data Comp: Zlib Server Time: 2024-04-16 17:13:35 UTC
Valid HTML 5 and Valid CSS