android - 如何保证上传文件只能由上传者下载?
高洛峰
高洛峰 2017-04-17 11:31:28
0
1
797

已经取消上传文件的外链,那么只能用FTP下载,但是我FTP下载代码是放在Android代码里的,那FTP账号密码也都要写在代码里?如何防止账号密码不泄露出去?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
Ty80

It is not recommended that you use FTP to download files on the client. Security is one aspect, and there is no CDN acceleration effect through FTP.
You can enable Token anti-leeching, request your own server to calculate and obtain the Token before downloading the file, and then the client can directly download the file through HTTP.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template