/    Sign up×
Community /Pin to ProfileBookmark

Javascript file MD5 hash validation routine needed

Hello I am running a website with Exponent and I need some help.

I need to know if there’s ANY method to do the following (can be in any of the following scripting languages: Javascript (recommended), PHP):

I am making available on the site files to download. However for security I would like to use MD5 checksums on all files I make available for download. What I would like is a Javascript that does one of the following:

*Gets an MD5 hash from a specified file and checks it against a specified MD5 hash (such as in a variable)
*
Returns to the php page an Md5 hash for a specified file.

I will not post my website directly on these forums for possibility of spammers, but if you must take a look at the website to help me out, email me at [REMOVED] with your email address and also for spam protection say this (but remove ALL characters except the letters and the period): I 45wo7uld like to 3know9 what you4r website8 is XA71NAf3tp so I ca2n vie6w it and hel45p yo2u4 ou7t. I will reply to you from the email address [REMOVED] (because MailEnable will not let me email out to any addresses but addresses on my local domain.)

Thank you for your help.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@FangJan 02.2009 — JavaScript can not read/write to a file system; use php
×

Success!

Help @xanaftp spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...