-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decrypt Files Without Server #9196
Comments
Nextcloud encryption is a mess. I highly suggest that anyone reading this does not use it. Save yourself before it's too late! |
Please use the issue template and make sure that your bug report is not already covered by one of these topics: For full information, there is also a topic in the forum: https://help.nextcloud.com/t/decrypt-my-files/30354 |
@Engineer-of-Stuff did you find a way to fix your problem? I am having a similar issue that I can't decrypt thousands of files because the signature doesn't match. |
@suntorytimed no I didn't. I gave up and started over. I don't trust the encryption, and since the keys are stored on the server its kinda useless. |
I did find a way to turn off the signature check by adding The reason is that the server reports a different filesize to the client and breaks off the download too early. The client therefore thinks that the connection was lost and reports an error. But the file is already downloaded successfully (f.e. in Chrome you just have to remove .crdownload at the end of the downloaded file). I have written a small Python 3 script that can download the files via WebDav. It is a dirty hack, but at least I could recover my files. You can find the script including an explanation in my gitea repository: |
(Sorry for repeating this post so often, but there are many forum entries and issues that people looking for a solution might find via Google 😄)
I have put this code as the first command in the
I can now see the previews in the web interface and download all files decrypted and even download the folders as zip-files. My script is not necessary anymore 😀 |
@Engineer-of-Stuff I don't know if this is still relevant for you but we've written such a tool: decrypt-file.php |
Not anymore, but that's really cool and it might save someone's data someday. |
Yup, just saved my bacon. |
As per the instructions, run that in a console/terminal window. |
@Apses98 To use the script you have to call it through a shell/terminal/console. Furthermore, you have to have the PHP CLI installed on the system. Calling the script through the webserver is not supported as it may run quite a while and could timeout in the meantime. Please also take note that the script is written with macOS and Linux in mind. It should work under Windows when paths are written with slashes instead of bashslashes (e.g. |
@Eeems I added my nextcloud info here
and this is the code i wrote to call the php decryption file This is the error that i am getting (in the PuTTY terminal) 'ERROR: /xxxxx/xcloud/data/mohammad/files/Documents/Nextcloud flyer.pdf FAILED |
@Apses98 It's probably better to open an issue on https://github.com/syseleven/nextcloud-tools to ask for help instead of replying to this thread. You likely will need to do some digging into the source of the tool to get more information as for why it's failing. |
@Eeems |
@Apses98 Opening an issue there would indeed be helpful so that I can have a closer look why the script doesn't work out for you. :) |
I have lost my Nextcloud server install, but I have recovered my encrypted files and keys (master, public, and recovery with password).
I need to decrypt my files. How would decrypt them without the server?
The text was updated successfully, but these errors were encountered: