Coder Social home page Coder Social logo

jefsr's Introduction

jefsr (Java EncFS Reader) is a library intended for accessing data stored in
EncFS volumes. From user perspective, the main difference between jefsr and
EncFS itself is that jefsr reads the data directly from encrypted files without
the need for mounting the file system. Additionally, jefsr permits only for
reading the data; there is no 'write' functionality.

The library is written in Java (tested against version 6) and comes bundled with
the following libraries:
- XStream 1.4.2, xstream.codehaus.org (lib directory)
- Base64 2.3.7, http://iharder.net/base64 (src/net/iharder/base64 directory)

jefsr was tested against EncFS 1.7.4 and no actions were taken to achieve
compatibility with old versions of EncFS. It is assumed that all configuration
options of EncFS 1.7.4 are supported.

In order to access files one must provide path to volume config file and user
password. The password is not stored anywhere and is used exclusively to
decipher master volume key. The config file must reside in root directory of the
encrypted volume data tree. Currently only .encfs6.xml config files are
supported.

In order to use the library create an instance of az.jefsr.Volume class and call
its init() method. Afterwards, it's sufficient to use decryptPath and
decryptFile functions to get the appropriate data. It's important to note that
all paths provided to the API calls must be relative to volume config file.

jefsr's People

Contributors

azawadzki avatar

Watchers

 avatar

jefsr's Issues

az.jefsr.crypto.CipherConfigException: Volume config and key data inconsistent

I have an encrypted volume created by "Encfs GUI" by Frediano Ziglio.
I can mount and umount it without any problem.

However when I try do the same from jefsr (where fnode is the file node for the 
.ecnfs6.xml file) I get this error:
az.jefsr.crypto.CipherConfigException: Volume config and key data inconsistent
    at az.jefsr.crypto.KeyCreator.createVolumeKey(KeyCreator.java:92)

I am doing this in the UK, so I dont think there are any encryption 
restrictions.

This is the code:
    Volume v;
    try {
        v = new Volume(fnode.getFile().getAbsolutePath());
    } catch (FileNotFoundException e) {
        e.printStackTrace();
        return;
    } catch (UnsupportedFormatException e) {
        e.printStackTrace();
        return;
    } catch (IOException e) {
        e.printStackTrace();
        return;
    }

    try {
            v.init("poopoo");

Original issue reported on code.google.com by [email protected] on 28 Aug 2013 at 7:37

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.