I'm coding a application, but I have a problem in Autoupdate function. The Autoupdate function can be described: - First, I upload my program to SourceForge - When user chose Update, the program will check MD5 code all file, and compare it to the same on SourceForge. But I don't know how to get MD5 code of a file on SourceForge, (C# Code) Someone help me? Thanks!
Asked
Active
Viewed 353 times
2
-
http://checksumtool.sourceforge.net/ – L.B Mar 24 '12 at 16:06
1 Answers
0
You can run regex over the output of a project feed.
i.e. if you know the specific file you're going to download you can find the media:content
line in
http://sourceforge.net/api/file/index/project-id/<PROJECTID>/mtime/desc/limit/50/rss
Then you can use some regex to get the hash for that file;
(?!<media:hash algo=\"md5\">)([a-fA-F\d]{32})(?=</media:hash>)

Thermionix
- 669
- 1
- 6
- 17