Skip to content
Back

encrypt and decrypt buckets

  • 0
  • Self Hosted
jogri
14 May, 2026, 16:16

I have a bucket where I switched from encryption to not encrypting files. I later realized that files already uploaded earlier stay encrypted. Now I have a bucket where half of the files are encrypted, half are not. Is there a migration script where I can either encrypt or decrypt all files in a bucket? Or can I decrypt the files myself and override the encrypted once?

TL;DR
To decrypt the files in your bucket: 1) Download the encrypted files through Appwrite. 2) Re-upload the files into the same bucket with encryption disabled. 3) Verify the files are as desired, then delete the old encrypted files. There's no migration script available to automatically encrypt or decrypt files in a bucket.
Devika
14 May, 2026, 16:36

As per what I know, there's neither any tool present to encrypt/decrypt the existing files nor it is possible to do the same manually. You can perform following steps to decrypt those files:

  1. Download the encrypted file through Appwrite.
  2. Re-upload the downloaded content into same bucket (this time encryption disabled).
  3. After verifying everything works well and all files are as you've desired, delete the old encrypted files.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more