dounine / clouddisk Goto Github PK
View Code? Open in Web Editor NEW:cloud: 360云盘存储SDK [ clouddisk sdk for 360 ]
License: MIT License
:cloud: 360云盘存储SDK [ clouddisk sdk for 360 ]
License: MIT License
Ello, I'm creating this issue because I've been doing research about the downloading
behind 360 cloud disk since it's closure on Nov. 1st and want to you a question as
the dev behind the SDK clouddisk.
To explain, many days before the closure of 360 Cloud Disk, I was rushing to download
the last of my files I haven't backup yet. Dealing with the slow download speeds as everyone
else was, I began a series of research behind the DL process to learn why it's so slow.
I've learned why the files take so long to download and it's because they're fragmented
thus each file fragment is downloaded at a time.
So I almost stopped researching until my curiosity peaked at learning about
how downloads are requested! (Since the closure was so close and I didn't get
the last of my files downloaded before then).
Below is an example "Sync.getDownloadInfo" xml response when requesting a file to download:
<?xml version="1.0" encoding="utf-8"?><response errno="0" errmsg="" count="1" k="" u="" d="MzUw" t="MjAw"><file_info fpath="/Ese-Lolifox v0.3.8.9a.exe" ver="1" ctime="1433084529" mtime="1433084674" fsize="19068928" fhash="05347706c635dab7aaa09a54c6b0ac9de446c596" dt="79.75df0a0f6a706298a81010c53da5ff30_用户令牌遗漏了" nid="14715458879408627" compress="0" http="tb-dl3.yunpan.360.cn" addr_1="180.163.237.192,cnc,d"/></response>
I've been studying the attributes within these responses and learned quite a lot besides the obvious.
The "fhash" attribute is not just a mere "sha1" hash calculation but actually an hash calculation of all the bhash (file fragment block hashes) sha1 hashes in a single string, all in order.
Here's a link on where I learned it: (And yes, I tested it myself and can confirm it's true)
http://blog.csdn.net/gnicky/article/details/49247579
Nid and the other attributes, I already know or are obvious in itself...
But there's one, no, 5 attributes that I don't know what they are.
k, u, d, t: These are attributes I have no idea about and if you have any info about them, I would love to hear what they are and what they do.
Okay, here's why I'm making this issue...
The "DT" attribute...is an attribute that starts with a number then an MD5 hash.
This MD5 is unknown as I have looked everywhere and found no info on how it's calculated.
I tested one of my files that's on my cloud disk, hashing it for an MD5 value but found it's not
related. I looked online to see if any similar MD5 hash exists to no avail...
I've made a thread on the official BBS 360 forum but no one has or knows about it:
http://bbs.360.cn/forum.php?mod=viewthread&tid=15235597
So I'm asking you for help on this...
I know that 360 cloud disk (personal) is gone but still, this has been bugging me for a while.
Please, do you know what the "DT" attribute means? Please answer and thanks!
Oh and I emailed you but you haven't replied...
Hope I'm not a bother! ^-^
fileDownloadAddressParameter.setNid("14576185026173704");//文件nid
麻烦请教一下, 这里的文件nid是什么?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.