Creating a password-protected (encrypted) disk image?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Creating a password-protected (encrypted) disk image?

Post by Mag » Mon Oct 17, 2016 7:03 pm

I think it's not possible, but I ask to see if somebody has some ideas about... is it possible to create a password-protected (encrypted) disk image under macOS with LiveCode? :oops:

AxWald
Posts: 368
Joined: Thu Mar 06, 2014 2:57 pm

Re: Create a password-protected (encrypted) disk image?

Post by AxWald » Mon Oct 17, 2016 7:20 pm

Hi,

no MacOS here, but in Win I'd just use 7zip. Putting the image into a password protected archive, via cmd line & shell call. I'm sure one of the Mac or Unix tools available for you can do this, too.

Have fun!
Livecode programming until the cat hits the fan ...

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Creating a password-protected (encrypted) disk image?

Post by Mag » Fri Oct 21, 2016 3:32 pm

Thank you axwald, do you know if there is a tutorial available to use cmd line & shell call?

AxWald
Posts: 368
Joined: Thu Mar 06, 2014 2:57 pm

Re: Creating a password-protected (encrypted) disk image?

Post by AxWald » Sat Oct 22, 2016 12:24 pm

Hi,

7-zip itself is at:
- SourceForge download page or at:
- 7-Zip download page

The documentation ("7-zip.chm") is included in the program package (and in my demo).
I have a link to a 3rd party HTML version too (only cmd line part) that looks innocent. *1)

The files needed to use 7-Zip as cmd line tool are in the "7-Zip Extra" packages.

A tiny stack that demonstrates the procedure is attached (script in button). You need to place a "7za.exe" (cmd line engine from a "extra package") into the folder "externals" - it's too big for the forum (637 KB).

For Linux/ Mac, there's similar tools afaik. 7-zip has some ports (see the web sites above), but I didn't try these yet.

Have fun!

*1): 7-Zip is a popular tool, so be cautious - its quite easy to find infected or malevolent versions of it. But we are smart and only grab our software from trusty sources, right?
Attachments
Axwald_ZipTest.zip
A little demo
(97.4 KiB) Downloaded 85 times
Livecode programming until the cat hits the fan ...

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Creating a password-protected (encrypted) disk image?

Post by Mag » Sat Oct 22, 2016 12:41 pm

Thank you so muc AxWald for the very useful info!

PS
Yes, we only grab our software from trusty sources! 8)

AxWald
Posts: 368
Joined: Thu Mar 06, 2014 2:57 pm

Re: Creating a password-protected (encrypted) disk image?

Post by AxWald » Sat Oct 22, 2016 6:30 pm

Hi,

about trusty sources: I just found out that a port of 7-Zip is in at least the Debian repositories (as "p7zip"), and on my Linux Mint 18/ Mate it's actually installed by default. So the demo stack should run there, with a minimal modification ;-)
The cmd line tool I use ("7za.exe") comes in the package "p7zip-full" and can be invoked simply by "7za".

Have fun!
Livecode programming until the cat hits the fan ...

cstiger004
Posts: 1
Joined: Sat Jan 26, 2019 4:52 am

Re: Creating a password-protected (encrypted) disk image?

Post by cstiger004 » Sat Jan 26, 2019 7:34 am

I agree the 7zipguides is impressed me with the completeness of its feature set, and the ease of used...Thanks for recommending this...

Post Reply

Return to “Talking LiveCode”