How can I encrypt a directory?

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
Jarrett
Posts: 22
Joined: Thu Oct 01, 2020 8:35 am
Has thanked: 4 times

How can I encrypt a directory?

Post by Jarrett »

Puppy Linux Bionic Pup 64 bit.
Frugal install on USB.

I've used ccrypt to encrypt files but I would like to encrypt an entire directory. What is the simplest way of going about this?
User avatar
mikeslr
Posts: 2861
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 174 times
Been thanked: 869 times

Re: How can I encrypt a directory?

Post by mikeslr »

I'll repeat my "Duh" :oops: at the bottom of this post, http://www.murga-linux.com/puppy/viewto ... 02#1043322. I didn't remember that " Packit, built into every recent Puppy, AFAIK, will compress a folder simultaneously encrypting it. XArchive, also builtin, available thru the Right-Click Menu, will ask for the password."

Stumbled across the above while reading that thread as I remembered there was a problem with veracrypt.

If Packit or XAchive aren't built into your Puppy, you'll find them in the Additional Software Section. I think they are built-into BionicPup64: not certain as the one I use has been remastered and I may have added those applications.
williams2
Posts: 1037
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 298 times

Re: How can I encrypt a directory?

Post by williams2 »

You can use encfs to encrypt the files a directory

BionicPup64 doesn't seem to have it installed, you would install it from the ppm Puppy Package Manager.
search for encfs and install with all dependencies (libtinyxml)

Code: Select all

# mkdir xyz .xyz
# 
# encfs /root/.xyz /root/xyz
Creating new encrypted volume.
Please choose from one of the following options:
 enter "x" for expert configuration mode,
 enter "p" for pre-configured paranoia mode,
 anything else, or an empty line will select standard mode.
?> 

Standard configuration selected.

Configuration finished.  The filesystem to be created has
the following properties:
Filesystem cipher: "ssl/aes", version 3:0:2
Filename encoding: "nameio/block", version 4:0:2
Key Size: 192 bits
Block Size: 1024 bytes
Each file contains 8 byte header with unique IV data.
Filenames encoded using IV chaining mode.
File holes passed through to ciphertext.

Now you will need to enter a password for your filesystem.
You will need to remember this password, as there is absolutely
no recovery mechanism.  However, the password can be changed
later using encfsctl.

New Encfs Password: 
Verify Encfs Password: 
This mounts the encrypted dir /root/.xyz on the mountpoint /root/xyz/
A file you put in /root/xyz will go into /root/.xyz
All files in .xyz will be encrypted.
All files in xyz will seem to exist and be unencrypted.

Code: Select all

# ls -rt -goh .xyz
-rwxr-xr-x 1  23K Sep 18 15:48 Bxz2jx,JJzEH8kZRdGgOTzlZ
-rwxr-xr-x 1  565 Sep 18 18:39 XgSIQ0UwA3ICpTbfJ4gJsVjA
-rwxr-xr-x 1  451 Sep 18 18:39 We6vECLKAaoJSKWI3XmpsuNe
-rwxr-xr-x 1  249 Sep 18 18:39 ngijSCIbEnSKEwT7l7AXKhTR
-rwxr-xr-x 1  19K Oct 17 21:53 eDpY2W5JCikdDAT1hBlZvPdy
-rwxr-xr-x 1   36 Oct 20 00:08 w6kpLOMU9wBn6I-7KROkiCqd
-rwxr-xr-x 1   37 Oct 20 00:08 mq8UxI28OxGk0LUjKRiJaW6r
-rwxr-xr-x 1  30K Oct 20 00:08 jaZ8z3L5ggeVxEsLOb3nzeQ6
-rwxr-xr-x 1  167 Oct 20 00:08 iPrFSXaswTvrIBrSGZobJV15
-rwxr-xr-x 1 9.8K Oct 20 00:08 eb3JZnwKiX2onfGrtX2e5QI5
-rwxr-xr-x 1  308 Oct 20 00:08 d5MlzzKr,Y8-Rjo29LkwXivC
-rwxr-xr-x 1   60 Oct 20 00:08 8vf-UW6wQ2LEF,j8l5ttn3Ju
# 

Code: Select all

# umount-FULL /root/xyz/
Basically, just mount an empty dir on the encrypted dir:

Code: Select all

encfs /path/to/encrypted-dir /path/to/unencrypted-dir
umount the unencrypted-dir to make the dir empty again.
User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: How can I encrypt a directory?

Post by JASpup »

My first thought is the save file.

I haven't tried it yet, but still live (not installed) on a USB we have the option of creating the pupsave in ext3 or ext4 formats which offer encryption upon creation.

With a novice hand what I would try first is to have multiple save files encrypting those desired in a compression archive.

A pupsave is going to be esoteric for non-users, and encrypted as out of reach as your encryption scheme. The save file alone a technical person would have to be looking for to get at your data if not someone booting your Puppy with it in place.

What you can do depends a lot on how you intend to use it.

http://wikka.puppylinux.com/HowToAvoidLoadingSaveFile

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

Jarrett
Posts: 22
Joined: Thu Oct 01, 2020 8:35 am
Has thanked: 4 times

Re: How can I encrypt a directory?

Post by Jarrett »

@mikeslr
I had a look at VeraCrypt and ZuluCrypt which is in one of the repositories. I couldn't get either to work despite there apparently being no dependancy problems.

Packit, single pass with zip and a password may do the trick, but I haven't found anything that says it's encrypted, just compressed with a password.
I'm still working out what Xarchive will do.

@williams2
I'll try this out. Thanks.

@JASpup
I think something like this may prove the easiest option.
What I'm trying to protect is my email client which has an address book and a Logins file. It's not as if I'm trying to hide state secrets. :mrgreen:
In the event of my losing the USB stick (it's a Sandisk Cruzer and I can lose that on my desk!) I would like my address book and logins reasonable secure.
User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: How can I encrypt a directory?

Post by JASpup »

Jarrett wrote: Sat Oct 24, 2020 9:06 am @JASpup
I think something like this may prove the easiest option.
What I'm trying to protect is my email client which has an address book and a Logins file. It's not as if I'm trying to hide state secrets. :mrgreen:
In the event of my losing the USB stick (it's a Sandisk Cruzer and I can lose that on my desk!) I would like my address book and logins reasonable secure.
@Jarrett I keep my address book in a compression archive, though admit also storing contacts in Android is pretty damning for privacy.

The archive is just one file and it's still a maintenance issue.

Significant changes and it gets a new name, ContactList03, 04, 05, etc., in the cloud and external media.

I'm procrastinating archiving now by fascination with Puppyworld.

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

user1111

Re: How can I encrypt a directory?

Post by user1111 »

Simple zip might suffice for your needs

zip -er my.zip folder

which zip's up the contents of the directory 'folder' after asking you for a password (twice).

Then remove the folder. To use shred instead of simple rm the syntax for a folder is

find /your/directory -exec shred {} \;

which is less easily restored such as having the content undeleted on a ext4 filesystem using something like extundelete /dev/sdaX --restore-all (that for reference restores all the files it can to a sub folder called recovered_files).

unzip my.zip

restores (unzips) the folder (after asking you to enter the password).

Secure from casual inspection, but insecure in that forensics can crack the password relatively easily.
User avatar
Jafadmin
Posts: 381
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

Re: How can I encrypt a directory?

Post by Jafadmin »

I used to use encfs, but it creates 2 directories to work, one with the name you choose, and another with that same name but hidden by using a '.' as the first character of the name.

The problem I had with this is that if you copy or move the directory but forget to move it's hidden partner, you lose the directory.

These days I create LUKS encrypted files that contain a filesystem formatted to whatever you want. These are then mounted to your usual filesystem on demand.

I wrote an app for that called LotsaLuks: viewtopic.php?f=104&t=520
Read the overview pdf to see if that might help.

Important: Don't create a LUKS storage file inside your savefile!
williams2
Posts: 1037
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 298 times

Re: How can I encrypt a directory?

Post by williams2 »

bcrypt still seems to encrypt in BionicPup64. I think newer versions of bcrypt have encryption disabled, because bcrypt is easier to break with newer hardware. It might be good enough for your purposes. Zip with a password might be good enough, as rufwoof says.

You can also encrypt files using openssl.

Code: Select all

openssl help
Jarrett
Posts: 22
Joined: Thu Oct 01, 2020 8:35 am
Has thanked: 4 times

Re: How can I encrypt a directory?

Post by Jarrett »

The encryption offered at first shutdown seems to have problems. Probably not the best route. Really needs to be 100% reliable.
Having the full Zip suite in the package (Bionic 64) is great and the zip and password options for selected file types works well and seems, from what I've read to be reasonably secure. It's great for sending encrypted files, but as a day to day file protection, at least for what I want it's too complicated. If you take two passes for example you're left with files that need to be deleted.

GnuPG seems to work well, but once again it's primarily aimed to sent file security.

encfs seems to workbut has the problem jafadmin mentions.
(@jafadmin I'll have a look at your system. Thanks)

Bcrypt that comes packed with Bionic Pup 64 has worked well for me so far. It's simple to use. Until I find something better I'll probably stick with this. There is one aspect that concerns me and that is, having the encryption method so obviously displayed may make cracking the encryption easier. I don't know enough about the subject.

None of these methods solves the problem of having an email client. If one uses the email client with an attatched address book then anyone who cares to look has access to all the contacts in the address book. Even without using the address book, all recieved mail has the senders email attatched. I think the only answer is not to have an email client installed.
There are number of email providers that offer end to end encryption. Okay for spies, but not much use for sending emails to elderly relatives for example.
williams2
Posts: 1037
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 298 times

Re: How can I encrypt a directory?

Post by williams2 »

I've used ccrypt to encrypt files but I would like to encrypt an entire directory. What is the simplest way of going about this?
You can install ccrypt in BionicPup. It's probably available in the Puppy Package Manager (ppm). My executable is about 56k.

ccrypt has a recursive option, -r

ccrypt --help

You can always tar or zip a directory and then encrypt the archive file.

There is a MS Windows version of bcrypt (bcrypt.exe)

If you really need very strong encryption, I don't think any of these choices would be adequate.
User avatar
Trapster
Posts: 155
Joined: Sat Aug 01, 2020 7:44 pm
Has thanked: 1 time
Been thanked: 41 times

Re: How can I encrypt a directory?

Post by Trapster »

I made this years ago to use as a right click option with bcrypt

Code: Select all

#!/bin/sh

DIR="$@"
yaf-splash -text "Directory is being archived" &
tar -zcf $DIR.tar.gz $DIR
killall yaf-splash
yaf-splash -text "File is being encrypted" &
bcrypt_gui $DIR.tar.gz
killall yaf-splash
yaf-splash -text "Encryption complete" &
sleep 5
killall yaf-splash
other options here:

http://www.murga-linux.com/puppy/viewto ... 926#423516
Jarrett
Posts: 22
Joined: Thu Oct 01, 2020 8:35 am
Has thanked: 4 times

Re: How can I encrypt a directory?

Post by Jarrett »

@Trapster
I tried this but it didn't work with Bionic Pup 64. Thanks anyway.

@williams2
ccrypt has been replaced by Bcrypt. It's fine, works well but is limited to files and as far as I've tried out, text files only.
encrypt seems to work but it's a bit cumbersome.

Packit, using 7zip, second pass only, works and doesn't leave a pile of files that need deleting. Given I'm not trying to hide anything critical and just want to make life difficult for someone who has access to my computer or finds a USB drive with my passwords etc on, 7zip would seem adequate.

I think these days a simple but effective rule is, if you don't want anyone to have access to stuff on your computer, don't leave it on there in the first place.

Perhaps in a future release a simple application like Bcrypt that worked for folders/directories would be a good addition.

trister
Posts: 91
Joined: Mon Sep 28, 2020 6:52 am
Has thanked: 19 times
Been thanked: 16 times

Re: How can I encrypt a directory?

Post by trister »

I would suggest to try veracrypt again. It worth the trouble.

https://www.veracrypt.fr/en/Downloads.html

or try the one I made/use for BusterDog/StratchDog (renaming this to SFS)
veracrypt_1.22_amd64_180330.squashfs https://1fichier.com/?uo4stzcw7ya52ojcrwck
or
veracrypt_1.23_i386_legacy.tar.gz_v01b.squashfs https://1fichier.com/?pfmwgle08d05xjh9qfdq

I've been using it for year with encrypted drives and files (with folder structure inside).

User avatar
Amigodetux
Posts: 7
Joined: Thu Jan 14, 2021 6:14 am
Has thanked: 4 times
Been thanked: 2 times

Re: How can I encrypt a directory?

Post by Amigodetux »

Hi!!

I've always used Bcrypt, but in the Fossapup version, I can't find it. First I create a zip of the folder then I pass Bcrypt to it and the resulting file can be encrypted again. (I don't know if that adds security).

The Bcrypt application that Puppy Linux has installed is the easiest I have found. I would like someone to try to hack a calc file, with pasword, inside a zip with password and also, passed through bcrypt. I think I would sponsor a pizza for such an achievement. :)

User avatar
mikeslr
Posts: 2861
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 174 times
Been thanked: 869 times

Re: How can I encrypt a directory?

Post by mikeslr »

peazip, https://peazip.github.io/.

I posted about this on the old forum. If you use it to create an encrypted ".pea" archive then rename it to remove or change the ".pea" ending, the archive used* to look like a binary. Nothing will open it until you return or rename it to have the ".pea" ending and provide the password. http://murga-linux.com/puppy/viewtopic.php?p=815424.

In other words, before you can even attempt to access it's contents you must first know that the file isn't what it appears to be. Good luck to strangers finding a lost USB-Key.

====
* The iconic display may depend on the theme in use. But even if the display doesn't misleadingly suggest that it's a binary to be run, you could have named your archive something like "tulips" and given it the ending ".png". Trying to open tulips.png in a graphic application results in a notice such as that the file is corrupt.

User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: How can I encrypt a directory?

Post by JASpup »

Reading this post again, I just read on Wiki EncFS volumes are dynamically sized. Can VeraCrypt pull this? Is there another big advantage over Vera?

https://en.wikipedia.org/wiki/EncFS

williams2 wrote: Fri Oct 23, 2020 7:57 pm

You can use encfs to encrypt the files a directory

BionicPup64 doesn't seem to have it installed, you would install it from the ppm Puppy Package Manager.
search for encfs and install with all dependencies (libtinyxml)

Code: Select all

# mkdir xyz .xyz
# 
# encfs /root/.xyz /root/xyz
Creating new encrypted volume.
Please choose from one of the following options:
 enter "x" for expert configuration mode,
 enter "p" for pre-configured paranoia mode,
 anything else, or an empty line will select standard mode.
?> 

Standard configuration selected.

Configuration finished.  The filesystem to be created has
the following properties:
Filesystem cipher: "ssl/aes", version 3:0:2
Filename encoding: "nameio/block", version 4:0:2
Key Size: 192 bits
Block Size: 1024 bytes
Each file contains 8 byte header with unique IV data.
Filenames encoded using IV chaining mode.
File holes passed through to ciphertext.

Now you will need to enter a password for your filesystem.
You will need to remember this password, as there is absolutely
no recovery mechanism.  However, the password can be changed
later using encfsctl.

New Encfs Password: 
Verify Encfs Password: 

This mounts the encrypted dir /root/.xyz on the mountpoint /root/xyz/
A file you put in /root/xyz will go into /root/.xyz
All files in .xyz will be encrypted.
All files in xyz will seem to exist and be unencrypted.

Code: Select all

# ls -rt -goh .xyz
-rwxr-xr-x 1  23K Sep 18 15:48 Bxz2jx,JJzEH8kZRdGgOTzlZ
-rwxr-xr-x 1  565 Sep 18 18:39 XgSIQ0UwA3ICpTbfJ4gJsVjA
-rwxr-xr-x 1  451 Sep 18 18:39 We6vECLKAaoJSKWI3XmpsuNe
-rwxr-xr-x 1  249 Sep 18 18:39 ngijSCIbEnSKEwT7l7AXKhTR
-rwxr-xr-x 1  19K Oct 17 21:53 eDpY2W5JCikdDAT1hBlZvPdy
-rwxr-xr-x 1   36 Oct 20 00:08 w6kpLOMU9wBn6I-7KROkiCqd
-rwxr-xr-x 1   37 Oct 20 00:08 mq8UxI28OxGk0LUjKRiJaW6r
-rwxr-xr-x 1  30K Oct 20 00:08 jaZ8z3L5ggeVxEsLOb3nzeQ6
-rwxr-xr-x 1  167 Oct 20 00:08 iPrFSXaswTvrIBrSGZobJV15
-rwxr-xr-x 1 9.8K Oct 20 00:08 eb3JZnwKiX2onfGrtX2e5QI5
-rwxr-xr-x 1  308 Oct 20 00:08 d5MlzzKr,Y8-Rjo29LkwXivC
-rwxr-xr-x 1   60 Oct 20 00:08 8vf-UW6wQ2LEF,j8l5ttn3Ju
# 

Code: Select all

# umount-FULL /root/xyz/

Basically, just mount an empty dir on the encrypted dir:

Code: Select all

encfs /path/to/encrypted-dir /path/to/unencrypted-dir

umount the unencrypted-dir to make the dir empty again.

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

williams2
Posts: 1037
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 298 times

Re: How can I encrypt a directory?

Post by williams2 »

I just read on Wiki EncFS volumes are dynamically sized

Basically, with EncFS, an encrypted dir is mounted on an empty dir using the EncFS driver.

For example, you could create an empty dir named "mydir" and you could create another empty dir named "dotmydir" (a hidden dir because of the dot.) Then you could mount "mydir" on "dotmydir"

Now you can put files in "mydir" and it will look like the files are going in "mydir" but they are really going in "dotdir" Files and dirs in "dotdir" will all be encrypted, each filename and dir, and the contents of each file is also encrypted. If you unmount "mydir", it will be empty again. The files will all be in "dotmydir", emcrypted.

The space you have available in the encrypted dir "dotmydir" is all of the free space in the file system that the dir is in.
The space taken in the dir and therefore in the file system, is the size of the files. That is what they mean by dynamic, I think. Exactly the same as a Puppy save folder.

Can VeraCrypt pull this?

VeraCrypt encrypts a partition, or it can encrypt a file system in a file. VeraCrypt can create and use parts of a partition or in a file to make and use a hidden encrypted, but there is nothing to prevent hidden space from being accidentally overwritten by the regular fiile system.

I'm not sure if VeraCrypt volumes can be resized. It should say in the manual or in the faqs.

Is there another big advantage over Vera?

EncFS encrypts file by file. It's not at all hidden.

VeraCrypt's volimes can be hidden in a partition or in a file (plausible deniability.)

I would not want to risk my life with either one.

User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: How can I encrypt a directory?

Post by JASpup »

Your explanations are thorough and clear, and surely one will benefit when coming across or looking for the information.

My interest here was basic thinking:

'I was just calculating VeraCrypt partition sizes. That's not required by EncFS because it sizes dynamically. Great!'

Part B:

'Now can Vera do this too, or is EncFS that advantageous?'

Part C:

'Does EncFS have any other comparative tricks up its sleeve I'm missing?'

moving on...

Vera's hidden partitions look like a useful feature, but I need to wrap my head around the technology first before I comprehend the risk. I plan to start with the more basic container. Ironically TrueCrypt is in the PPM & Vera not, but that may be because I'm not updated/in the newest Puppy. EncFS is quite small in comparison, even with dependencies.

williams2 wrote: Sun Apr 11, 2021 3:42 am

I just read on Wiki EncFS volumes are dynamically sized

Basically, with EncFS, an encrypted dir is mounted on an empty dir using the EncFS driver.

For example, you could create an empty dir named "mydir" and you could create another empty dir named "dotmydir" (a hidden dir because of the dot.) Then you could mount "mydir" on "dotmydir"

Now you can put files in "mydir" and it will look like the files are going in "mydir" but they are really going in "dotdir" Files and dirs in "dotdir" will all be encrypted, each filename and dir, and the contents of each file is also encrypted. If you unmount "mydir", it will be empty again. The files will all be in "dotmydir", emcrypted.

The space you have available in the encrypted dir "dotmydir" is all of the free space in the file system that the dir is in.
The space taken in the dir and therefore in the file system, is the size of the files. That is what they mean by dynamic, I think. Exactly the same as a Puppy save folder.

Can VeraCrypt pull this?

VeraCrypt encrypts a partition, or it can encrypt a file system in a file. VeraCrypt can create and use parts of a partition or in a file to make and use a hidden encrypted, but there is nothing to prevent hidden space from being accidentally overwritten by the regular fiile system.

I'm not sure if VeraCrypt volumes can be resized. It should say in the manual or in the faqs.

Is there another big advantage over Vera?

EncFS encrypts file by file. It's not at all hidden.

VeraCrypt's volimes can be hidden in a partition or in a file (plausible deniability.)

I would not want to risk my life with either one.

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

williams2
Posts: 1037
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 298 times

Re: How can I encrypt a directory?

Post by williams2 »

From https://sourceforge.net/p/veracrypt/dis ... c8919cd0b/

2020-06-17

At present, there is no 'Volume Shrinker' utility, only a 'Volume Expander' (VeraCryptExpander.exe), and, AFAIK, no plans to create one.

I've had to deal with this issue recently, and had to copy the data elsewhere before deleting the original volume and then creating a new, smaller one, and writing the data back to it.

The 'Expander' works well, with NTFS formatted volumes only, and where there is no hidden volume, and so I've learnt to start with smaller volumes, and expand them if and when necessary.

User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: How can I encrypt a directory?

Post by JASpup »

Bull's-eye that's good to learn. I expect to be experimenting with both. I saw a tray applet in the PPM for EncFS so it may have a gui side as well, if not at least menu options.

Last edited by JASpup on Sun Apr 11, 2021 4:26 pm, edited 1 time in total.

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

User avatar
mikeslr
Posts: 2861
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 174 times
Been thanked: 869 times

Re: How can I encrypt a directory?

Post by mikeslr »

Re-reading this thread I noticed that someone complained about none of the solutions being "Senior-Friendly".
I still like peazip, and the camouflage technique described here, viewtopic.php?p=15147#p15147. Using yad and a simple bash script it shouldn't be very difficult to create applications to 'mask' and 'unmask' a camouflaged file:

Mask:
Step 1: Puppy has a Right-Click>Copy-to option which will copy either/both files and FOLDERS to 'bookmarked' locations. Add a "peazip-temp" folder as a destination.
Step2: Puppy also has Right-Click>Copy & Duplicate options. Copy and change name to something innocuous --e.g. a flower, e.g. Rose.
Step 3: Run peazip, selecting folder. Peazip has a bookmarking tool which can make selecting the "peazip-temp" --the one in which folders are masked/unmasked-- easy to reach. And IIRC, once you select a folder it will automatically open to it until you select a different folder.
Step 4: Left-Click the Rose File/folder --already within peazip-temp folder so it will appear in GUI. Left-Click "Enter password /keyfile" button and enter password. It can be something easy to remember: a middle name, a favorite pet, or perhaps slightly more complex such as one's first telephone number that is no longer being used. Click OK. The Output is Rose.pea. That file will be in the peazip-temp folder.
Step 5. Script removes ".pea" adds, e.g. png.
Step 6. Script deletes unencrypted file from peazip-temp folder.
File can now be emailed to recipient who knows password.

Unmask:
Step 1: Script copies/duplicates received file removing 'png' and adding 'pea'
Step 2: Right-Click copy-to copies to recipients peazip-temp folder from Download folder.
Step 3: Script opens peazip to the peazip-temp folder.
Step 4. Recipient selects the Rose.pea file and enters password. Output is unencrypted file/folder within the peazip-temp folder.

Peazip can be run from the command line. https://peazip.github.io/peazip-command-line.html So, most of the above might be able to be automated in two applications, mask & unmask.
Don't know anything about programming under Windows.
My 'ToDo' folder keeps growing. :roll: Feel free to write your own scripts. :lol:

Post Reply

Return to “Beginners Help”