Giter Club home page Giter Club logo

Comments (3)

samuel-lucas6 avatar samuel-lucas6 commented on May 23, 2024 1

kryptor -d [File Name] should've worked.

The problem is there's no way for anybody but you to know what you did to encrypt the file. That's by design to reveal minimal information. In other words, it's not possible for that to work in all cases. It either has to default to password-based encryption or private key based encryption.

from kryptor.

samuel-lucas6 avatar samuel-lucas6 commented on May 23, 2024

Thank you for the video!

It seems you encrypted the file with a password but tried to decrypt with your encryption private key. The password for the encrypted file was not the same as the password protecting your private key, leading to an error.

What you did at the end was the right approach. Encrypted files don't reveal which method (password, keyfile, password + keyfile, or encryption private key) was used for encryption. Therefore, you have to specify what you did like so:

// Default encryption private key (stored in %USERPROFILE%/.kryptor)
$ kryptor -d file.txt
// Non-default encryption private key (not in %USERPROFILE%/.kryptor)
$ kryptor -d -x:"encryption.private" file.txt
// Password
$ kryptor -d -p file.txt
or
$ kryptor -d -p:"password" file.txt

Those earlier attempts said 'Decrypting private key...' instead of 'Deriving encryption key from password...'. That was a more recent change to try to make things clearer. However, 'Enter your password' is the same for password and private key decryption, which is understandably confusing, just convenient code wise. I can look into improving that.

I hope that helps. Let me know if you have any questions.

from kryptor.

umitseyhan75 avatar umitseyhan75 commented on May 23, 2024

kryptor -d -p [File Name] worked. kryptor -d -p:"passphrase" [File Name] probably would work either.

But yes, I see a confusing approach here. Kryptor assumes I encrypted the file with private key when decrypting without letting me know.

kryptor -d [File Name] should've worked.

from kryptor.

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.