I've come across some (Microsoft generated) JavaScript files that look like this:
... SOME JAVASCRIPT CODE...
// SIG // Begin signature block
// SIG // MIIaVgYJKoZIhvcNAQcCoIIaRzCCGkMCAQExCzAJBgUr
...
// SIG // 2Ee3yfXCMiZKY8Yv2h0=
// SIG // End signature block
My question is what is the purpose of this digital signature? Yes, I know it is signed with someone's public key and that it helps to identify the author of the file, and yes, I know that it also makes sure nobody has tampered with the file, but what do browsers do with it? How do they use it? What're the benefits of having it in your JavaScript file (besides making your files look much larger :)?
It looks like a signed script as described here (WSH vbscript, but WSH can use jscript as well). I suppose is rather pointless in browser context though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With