<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>Robin</div><div><br></div><div>Thank you very much for your reply and for the script. I will try it tomorrow and let you know.</div><div>While we are at it, I have a question. Is the encryption against the plan user's password? Meaning, is it important to keep the encryption.key file in a safe place?</div><div>Again, thank you very much for your response.</div><div>Niazy</div><div><div style="font-size:75%;color:#575757">Sent from my Galaxy SĀ®III</div></div> <br>Robin Appelman <icewind@owncloud.com> wrote:<br>On Wednesday 08 August 2012 07:32:33 niazy@niazyselim.net wrote:<br>> Hello All,<br>> <br>> I am in the same dilemma as Andreas. I had all my files and my wifes<br>> files (separate accounts) encrypted in owncloud. Things were working<br>> well. The server was acting up so I decided to reinstall to a fresh<br>> Ubunut 12.04LTS. I had my owncloud/data/ on a separate partition on a<br>> RAID5 disk.<br>> After resinstall, out of paranoia and to be safe, I copied the data<br>> first to owncloud/data/ using regular cp command.<br>> Our passwords are the same. My files are encrypted and I cannot<br>> decrypted them any more. The encryption.key file is the the original<br>> one. I wrote a php routine to decrypt the can decrypt the<br>> encryption.key and I was able to retrieve its salt. For an expirement,<br>> I encrypted a text file using owncloud and I still cannot decrypt the<br>> text back. It decrypts in owncloud browser but not using a php<br>> blowfish routines. I emailed Frank Karlitschek and he was nice enough<br>> to respond. He said that the salt in the config.conf is used to<br>> encrypt the password. I looked in the routines and found out that the<br>> salt is generated in a random fassion. Then we are screwed. I cannot<br>> believe we encrypt people's data against a random salt and without any<br>> warning to tell people to copy the salt in a safe place just in<br>> case????????????<br>> <br>> Anyhelp will be greatly appreciated.<br>> Niazy<br><br>Nothing in config.php is used for encryption, I think the problem is that with <br>the old database gone, owncloud no longer knows what files were encrypted.<br><br>I made the attacted script which will set the encryption flag for all files that <br>would be encrypted using the current settings.<br>Place the script in your owncloud folder and run it from a browser.<br><br>Using this script might mess up your installation and any files uploaded before <br>encryption was enabled in the original installation will be unreadable untill <br>the values in the database are corrected<br><br> - Robin Appelman</body>