Giter Club home page Giter Club logo

encfsy's Introduction

encfsy

EncFS implementation for Windows with Dokany and Crypto++. For 64bit environment only.

Usage

encfs.exe [options] rootdir mountPoint
  rootdir (ex. c:\test)                  Directory source to EncFS.
  mountPoint (ex. m)                     Mount point. Can be M:\ (drive letter) or empty NTFS folder C:\mount\dokan .

Options:
  -u mountPoint                          Unmount.
  -l                                     List mount pounts.
  -v                                     Enable debug output to an attached debugger.
  -s                                     Use stderr for debug output.
  -i Timeout (Milliseconds ex. 30000)    Timeout until a running operation is aborted and the device is unmounted. Default to 30000.
  -t ThreadCount (ex. 5)                 Number of threads to be used internally by Dokan library.
                                         More threads will handle more event at the same time. Default to 5.
  --dokan-network UNC (ex. \host\myfs)   UNC name used for network volume.
  --dokan-removable                      Show device as removable media.
  --dokan-write-protect                  Read only filesystem.
  --dokan-mount-manager                  Register device to Windows mount manager.
                                         This enables advanced Windows features like recycle bin and more...
  --dokan-current-session                Device only visible for current user session.
  --dokan-filelock-user-mode             Enable Lockfile/Unlockfile operations. Otherwise Dokan will take care of it.
  --public                               Impersonate Caller User when getting the handle in CreateFile for operations.
                                         This option requires administrator right to work properly.
  --allocation-unit-size Bytes (ex. 512) Allocation Unit Size of the volume. This will behave on the disk file size.
  --sector-size Bytes (ex. 512)          Sector Size of the volume. This will behave on the disk file size.
  --paranoia AES-256bit / changed name IV / external IV chaining
  --alt-stream Enable NTFS alternate data stream.
  --case-insensitive Ignore case in filenames.
  --reverse Encrypt rootdir to mountPoint.
Examples:
        encfs.exe C:\Users M:                                    # EncFS C:\Users as RootDirectory into a drive of letter M:\.
        encfs.exe C:\Users C:\mount\dokan                        # EncFS C:\Users as RootDirectory into NTFS folder C:\mount\dokan.
        encfs.exe C:\Users M: --dokan-network \myfs\myfs1        # EncFS C:\Users as RootDirectory into a network drive M:\. with UNC \\myfs\myfs1

Unmount the drive with CTRL + C in the console or alternatively via "encfs.exe -u MountPoint".

Install

Download installer.

Please install Dokany before installation.

Licence

LGPL

Author

Mimi Twitter

encfsy's People

Contributors

mimidesunya avatar miyabe avatar shujaat-github avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

encfsy's Issues

EncFSy_console crashes

Environment:

  • Windows 11
  • Visual Studio 2019
  • 64-bit, Release build of cryptopp-CRYPTOPP_8_6_0, EncFSy_lib, and EncFSy_console
  • Dokany v1.5.1.1000

Exception thrown:
The following exception is thrown when I open Microsoft Visio file from Mounted Drive.
image

does not work...

Just installed it , dokan is 1.5.1.1000, but the encfsy complaints "Can't assign a drive letter" , no matter if I run this on gui - even as "admin". (windows 10 21H2 x64 )

Microsoft Visio file gets corrupted.

Visio file gets corrupted if it is saved after relocating an existing component i.e. rectangle, circle, square, etc.

Steps to reproduce:

  • Create a Visio document, place in it some components i.e. rectangles, squares, circles, etc. then Ctrl+S to save and then Close it.
  • Reopen the same document, which it does open successfully, however move and change location of an existing component and then save and close it.
  • Now again try to open the same document, but, unfortunately this time it would not open, instead Visio will show this message:
    image

I use Microsoft Visio 2019:

image

Feature: Add config data in file header

@mimidesunya @miyabe

(Please read 2nd comment and 3rd comment to know why I want this)

Can you please show me how can I add 2048 Bytes File Header to every file that is created in EncFSy with UniqueIV set to true?

For the time being, I write 2048 Zeros if they are not already written and then set off to off += 2048 before passing to the following write function in EncFSWriteFile callback function:

int32_t writtenLen = encfsFile->write(FileName, fileSize, (char*)Buffer, off, NumberOfBytesToWrite);

But this does not work and the EncFSy throws exception.

I look forward to your help please.

Support for disabling Directory Names Encoding.

Currently EncFSy encodes both directory and file names. I have come across a need to disable directory names encoding. It would be so wonderful if you please add this feature in EncFSy.

Sample configuration file.

EncFSy_console fails to run as it require some configuration file. It would be awesome if a sample configuration file in included in the encfsy repository. Right now, application just exit with code 1 just after entering password.

EncFSy Crashes

[Attached 3 Screenshots below]

I have a folder containing around 100 PNG image files, when I open that folder and quickly scroll down and double click on an image to view it then the EncFSy crashes. Stack trace attached below.

I have also reproduced this issue by trying to open too many images quickly.

Note: It takes a bit patience to reproduce this issue.

image

image

image

Copy operation takes too much time while estimating `Time remaining`

When I copy a large file to EncFSy drive, the copy operation takes too much time (around 5-15 seconds) while estimating Time remaining as can be seen in the screenshot given below.

I noticed that the copy operation starts instantly when I copy the same file to an another partition or Cryptomator or Boxcryptor drives.

image

compiler question

Hello,

I was just trying to compile Encfsy with VS2019 and it seems that it needs SDK 143 which does not come in that version, but I think is available in VS2022.

Can you please tell me what version of Visual Studio you used?

Also, I am seeking someone who might be interested in working on a C++ SSHFS version that can compile under the latest Dokany. I have seen that there is a C# version available, but I am seeking a C++ version.

Would you be interested?
Thanks

CRITICAL: MS Word (.docx) File Fails to Save

My EncFSY root directory folder path is: C:/Users/Administrator/Dropbox/EncFSy_Root_Directory, and the command line arguments are:

"C:\Users\Administrator\Dropbox\EncFSy_Root_Directory" M: --paranoia --alt-stream --case-insensitive

I am encountering a problem when saving content in an MS Word (.docx) file. Please refer to the attached screenshot for details.

Please help resolve this issue.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.