WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to create an encrypted folder for my private files?  (Read 9619 times)

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
How to create an encrypted folder for my private files?
« on: June 09, 2014, 03:18:05 AM »
Is there any extension or way to create an encrypted folder for my private files?

Malik Awan

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: How to create an encrypted folder for my private files?
« Reply #1 on: June 09, 2014, 03:55:16 AM »
An easy approach would be to use the natively supported boot code "protect", in which case backup is encrypted and gets decrypted at boot.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: How to create an encrypted folder for my private files?
« Reply #2 on: June 09, 2014, 04:17:36 AM »
 Thanx for reply tinypoodle
Sir I am using persistent home and opt folder. that why i do not create back. Basically i need one folder in which i place my private files and then i encrypted that folder.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: How to create an encrypted folder for my private files?
« Reply #3 on: June 09, 2014, 10:02:56 AM »
Hi malikawan
Depending on your exact needs, bcrypt might be usable. It encrypts/decrypts files, not folders, but a little scripting might make it workable.

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: How to create an encrypted folder for my private files?
« Reply #4 on: June 09, 2014, 03:20:25 PM »
hi malikawan,

in the 4.x-branch encfs was an alternative tool for protecting folders.
in my opinion bcrypt has some security issues, cryptsetup has probably more auditing.
for dCore i recommend an encrypted container-file that is mounted over a mapper-device.

keep on securing even your basic daily environment.
« Last Edit: June 09, 2014, 03:23:41 PM by netnomad »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: How to create an encrypted folder for my private files?
« Reply #5 on: June 09, 2014, 07:37:30 PM »
in my opinion bcrypt has some security issues

Could you elaborate please?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: How to create an encrypted folder for my private files?
« Reply #6 on: June 10, 2014, 12:58:43 AM »
encfs looks like it might work in tc-5.x, please let us know if you decide to try it and it works.

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: How to create an encrypted folder for my private files?
« Reply #7 on: June 10, 2014, 01:21:59 AM »
in my opinion bcrypt has some security issues

Could you elaborate please?

one aspect of many others:
the debian packagers did not include the package in the actual stable branch yet, so i had to look for alternatives :(

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: How to create an encrypted folder for my private files?
« Reply #8 on: June 10, 2014, 03:57:11 AM »
bcrypt is not present in tinycore 4.7.7. I am using tinycore 4.7.7

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: How to create an encrypted folder for my private files?
« Reply #9 on: June 10, 2014, 04:07:34 AM »
tc@box:~$ encfs ~/.atserial /home/tc/AT-SERIAL
The directory "/home/tc/.atserial/" does not exist. Should it be created? (y,n) y
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.
?> x

Manual configuration mode selected.
The following cipher algorithms are available:
1. AES : 16 byte block cipher
 -- Supports key lengths of 128 to 256 bits
 -- Supports block sizes of 64 to 4096 bytes
2. Blowfish : 8 byte block cipher
 -- Supports key lengths of 128 to 256 bits
 -- Supports block sizes of 64 to 4096 bytes

Enter the number corresponding to your choice: 1

Selected algorithm "AES"

Please select a key size in bits.  The cipher you have chosen
supports sizes from 128 to 256 bits in increments of 64 bits.
For example:
128, 192, 256
Selected key size: 128

Using key size of 128 bits

Select a block size in bytes.  The cipher you have chosen
supports sizes from 64 to 4096 bytes in increments of 16.
Or just hit enter for the default (1024 bytes)

filesystem block size:

Using filesystem block size of 1024 bytes

The following filename encoding algorithms are available:
1. Block : Block encoding, hides file name size somewhat
2. Null : No encryption of filenames
3. Stream : Stream encoding, keeps filenames as short as possible

Enter the number corresponding to your choice: 1

Selected algorithm "Block""

Enable filename initialization vector chaining?
This makes filename encoding dependent on the complete path,
rather then encoding each path element individually.
The default here is Yes.
Any response that does not begin with 'n' will mean Yes:

Enable per-file initialization vectors?
This adds about 8 bytes per file to the storage requirements.
It should not affect performance except possibly with applications
which rely on block-aligned file io for performance.
The default here is Yes.
Any response that does not begin with 'n' will mean Yes: yes

Enable filename to IV header chaining?
This makes file data encoding dependent on the complete file path.
If a file is renamed, it will not decode sucessfully unless it
was renamed by encfs with the proper key.
If this option is enabled, then hard links will not be supported
in the filesystem.
The default here is No.
Any response that does not begin with 'y' will mean No: y

Enable block authentication code headers
on every block in a file?  This adds about 12 bytes per block
to the storage requirements for a file, and significantly affects
performance but it also means [almost] any modifications or errors
within a block will be caught and will cause a read error.
The default here is No.
Any response that does not begin with 'y' will mean No: n

Add random bytes to each block header?
This adds a performance penalty, but ensures that blocks
have different authentication codes.  Note that you can
have the same benefits by enabling per-file initialization
vectors, which does not come with as great of performance
penalty.
Select a number of bytes, from 0 (no random bytes) to 8:

Enable file-hole pass-through?
This avoids writing encrypted blocks when file holes are created.
The default here is Yes.
Any response that does not begin with 'n' will mean Yes:


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

-------------------------- WARNING --------------------------
The external initialization-vector chaining option has been
enabled.  This option disables the use of hard links on the
filesystem. Without hard links, some programs may not work.
The programs 'mutt' and 'procmail' are known to fail.  For
more information, please see the encfs mailing list.
If you would like to choose another configuration setting,
please press CTRL-C now to abort and start over.

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:
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
fuse failed.  Common problems:
 - fuse kernel module not installed (modprobe fuse)
 - invalid options -- see usage message


whats the problem plz

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: How to create an encrypted folder for my private files?
« Reply #10 on: June 10, 2014, 04:18:23 AM »
How to solve these problems please any idea

fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
fuse failed.  Common problems:
 - fuse kernel module not installed (modprobe fuse)
 - invalid options -- see usage message

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: How to create an encrypted folder for my private files?
« Reply #11 on: June 10, 2014, 05:54:14 AM »
$ encfs ~/.atserial /home/tc/AT-SERIAL
The directory "/home/tc/.atserial/" does not exist. Should it be created? (y,n) y
Are you using a linux filesystem? The fact that AT-SERIAL is confused with at-serial would seem to indicate that you're using a FAT filesystem.

Quote
fuse: mountpoint is not empty
Possibly due to the issue mentioned above.

Quote
- fuse kernel module not installed (modprobe fuse)
Does "lsmod" show the fuse module is loaded?

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: How to create an encrypted folder for my private files?
« Reply #12 on: June 10, 2014, 06:25:36 AM »
tc@box:~$ fdisk -l

Disk /dev/sda: 27.7 GB, 27733884928 bytes
255 heads, 63 sectors/track, 3371 cylinders, total 54167744 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    54155114    27077526   83  Linux
______________________________________________________


tc@box:~$ lsmod
Module                  Size  Used by    Tainted: P 
dm_mod                 40960  0
mperf                  12288  0
cpufreq_userspace      12288  0
cpufreq_powersave      12288  0
cpufreq_stats          12288  0
cpufreq_conservative    12288  0
squashfs               24576 130
scsi_wait_scan         12288  0
zcache                 12288  0
zram                   12288  1
loop                   16384 260
ppdev                  12288  0
parport_pc             24576  0
ac                     12288  0
parport                24576  2 ppdev,parport_pc
pcspkr                 12288  0
pcnet32                24576  0


fuse module not loaded

« Last Edit: June 10, 2014, 06:27:08 AM by malikawan »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: How to create an encrypted folder for my private files?
« Reply #13 on: June 10, 2014, 06:27:30 AM »
..so load it then  :)

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: How to create an encrypted folder for my private files?
« Reply #14 on: June 10, 2014, 06:30:03 AM »
tc@box:~$ modprobe fuse
modprobe: module fuse not found in modules.dep

its not loaded how to load fuse module