How to download encrypted data