Comments (3)
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.
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.
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)
- 📋 Feature: File names and tree structure HOT 4
- 🐛 Bug: Cannot decrypt folder with anonymous rename disabled HOT 2
- 💻 Support: Incorrect password HOT 6
- ✨ Feedback: 3.0b HOT 8
- ❓ Question: Is it possible to enter the password before ? HOT 1
- ✨ Feedback: Better UX: Error: This file/folder doesn't exist. HOT 3
- Error: IOException - Unable to retrieve private key. HOT 6
- 💻 Technical Support: Can't run Kryptor on Windows 10 HOT 2
- 🐛 Bug: Decrypting a folder - Zero length files aren't decrypted HOT 3
- 🐛 Bug: Incorrect decrypted file name for duplicated files when in the same location. HOT 1
- 📝 Documentation: Wrong .NET version? HOT 2
- 🐛 Bug: Space in folder name causes error HOT 1
- 🐛 Bug: Files with a certain length get truncated during decryption HOT 1
- Corruption Verification
- 🐛Bug: cannot execute pre-built Linux binary; exec: Failed to execute process HOT 3
- 📋 Feature: Faster folder encryption HOT 5
- File/Folder encrypting problem HOT 3
- 📋 Feature: Speed up reading original file name for large files HOT 1
- 🐛 Bug: System.OverflowException converting the FileStream length to an int HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kryptor.