in web javascript, possible to get md5 of javascript file?

lewitt14

New Member
in a web app, it is possible for \[code\]javascript\[/code\] to get the \[code\]md5\[/code\] of an \[code\]<script src=http://stackoverflow.com/questions/15696201/...>\[/code\]in my app the script files are "fingerprinted" (as per google recommendation) so they can be cached indefinitely. for example, in the file name\[code\]mBShjJZcO2LeNil6CjrGA-modal.min.js`\[/code\]the "fingerprint" is (in node.js) \[code\]crypto.createHash('md5').update(out.code).digest("base64").replace(/\W/g,'')\[/code\]where \[code\]out.code\[/code\] is the output of \[code\]uglifyjs\[/code\]with this I have the built-in ability to checksum the \[code\]script\[/code\] files. which seems would be very cool.is there actually any way to do this with javascript's web security model?
 
Back
Top