neurodroid/cryptonite

Not compatible with Windows EncFS apps

Opened this issue · 2 comments

Trying to use EncFS folder and Windows and Android phone both. The folder is synchronized PC <--> Phone via Dropbox (Dropsync to be precise). Could not make it work. The folders created on PC cannot be opened on Android.

  • Windows: Safe (http://getsafe.org/) - latest version. It's the only portable EncFS based app I could find and the way the disks are mounted is very nice.
  • Android: Cryptonite from play market.
  • Phone: Lenovo Z2 Pro unrooted

The obvious reason I could see is the config file structure and EncFS version.

Safe creates file .encfs.txt

creator: "EncFS 2.0"
revision: 20120902
cipher {
  name: "ssl/aes"
  major: 3
  minor: 1
  age: 2
}
key {
  ciphertext: ".\021\306]9W9\302\256P\216\2609\010\306[\214M\376\343\211\360\033x\250a\263=\325;\364\241e:;m\237\022f/\372v\255>\036\356e6/\032e\322"
  size: 32
  salt: "-s\331W\266\346e\356\023\352{\342\370\2764\r\356\235\263,"
  kdf_iterations: 429487
  kdf_duration: 3000
}
naming {
  name: "nameio/block32"
  major: 4
  minor: 0
  age: 2
}
block_size: 2048
writer: "EncFS 2.0"
unique_iv: true
chained_iv: true
external_iv: true
block_mac_bytes: 8
allow_holes: true
block_mac_rand_bytes: 0

Cryptonite creates XML

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="9">
<cfg class_id="0" tracking_level="0" version="20">
    <version>20100713</version>
    <creator>EncFS 1.7.4</creator>
    <cipherAlg class_id="1" tracking_level="0" version="0">
        <name>ssl/aes</name>
        <major>3</major>
        <minor>0</minor>
    </cipherAlg>
    <nameAlg>
        <name>nameio/block</name>
        <major>3</major>
        <minor>0</minor>
    </nameAlg>
    <keySize>256</keySize>
    <blockSize>1024</blockSize>
    <uniqueIV>1</uniqueIV>
    <chainedNameIV>1</chainedNameIV>
    <externalIVChaining>1</externalIVChaining>
    <blockMACBytes>8</blockMACBytes>
    <blockMACRandBytes>0</blockMACRandBytes>
    <allowHoles>1</allowHoles>
    <encodedKeySize>52</encodedKeySize>
    <encodedKeyData>
SKrrMPJGu+eew57tqC1l1wwxjWyV3J642Zsan8ngNOm79wxC0iwyNVPSw/wTAfFQB5wBuB==
    </encodedKeyData>
    <saltLen>20</saltLen>
    <saltData>
ifD1Za+Z6M3YJVKY6kTFrZ138tU=
    </saltData>
    <kdfIterations>283864</kdfIterations>
    <desiredKDFDuration>3000</desiredKDFDuration>
</cfg>
</boost_serialization>

Any way to make this work? Or needs enhancements?

I have the same issue. Its because the encfs version in cryptonite is not compatible with folders encrypted with newer versions. It would be nice with an updated version of encfs in cryptonite.

Same issue here.
Would be really nice to update the encfs used in cryptonite.