Now use the working crypto in download.js and upload.php.