Code Monkey home page Code Monkey logo

Comments (5)

strangefreeworld avatar strangefreeworld commented on August 15, 2024 1

That is what I expected, so I was mainly asking for clarification. I will try that at some point and will let you know. Thanks

from crypter.

HR avatar HR commented on August 15, 2024

Let me first briefly explain how it works.
Crypter never ever directly uses your MasterPass to encrypt anything but instead derives a MasterPassKey from it which it then uses to derive the encryption key (which is used directly to encrypt your file). Every time a file is decrypted, the encryption key is re-derived from the MasterPassKey. Every time you set the MasterPass through the setup or reset it (through Verify MasterPass), the MasterPassKey is derived from the MasterPass using a newly generated set of (random) credentials. These credentials are used to re-derive the MasterPassKey every time the Crypter is executed (i.e. the app is launched). The reason for using randomness is that it makes a brute-force attack more impractical to be performed which drastically improves security.

Considering the aforementioned, the reason you're encountering this issue is that the MasterPassKey originally used to derive the encryption key on one machine is not the same as the MasterPassKey derived on a different machine because the set of credentials generated on the other machine is different (due to randomness). As a result your encryption key that is derived from the MasterPassKey is different and so incorrect which yields the error.

Solution (to accomplish full portability)

So it is not a bug but a security-first practice. Nor is it such an inconvenience really because all you have to do is export the set of credentials from Crypter on one machine and import it into Crypter on another machine. The formal functionality is currently being implemented, see #6 for v3.0.

However, since Crypter v2.0 uses leveldb for persistently storing the credentials, you can try to directly copy the db or even whole appdata folder which should be found under ~/.config/Crypter/ for linux from one machine to another.

Hope this helps 😄 . Try it and let me know if it works!

from crypter.

HR avatar HR commented on August 15, 2024

It is documented now to make it more explicit https://git.io/Crypter.info#portability

from crypter.

HR avatar HR commented on August 15, 2024

@strangefreeworld I've just finished implementing the formal import / export functionality. Check it out in the dev branch and let me know how you find it! I've added a settings window (access it by going to Crypter > Preferences...) from where you can access the functionality. I've personally tested it and it works! Full CRYPTO file portability.

from crypter.

HR avatar HR commented on August 15, 2024

Resolved with resolving #6

from crypter.

Related Issues (20)

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.