INNER CODE UNIT · JavaScript
STRICT_INTEGRITY
gnh1201/welsonjs · app.js:13
var STRICT_INTEGRITY = false; // When enabled, only scripts matching a trusted integrity hash may execute.
var INTEGRITY_ALGORITHM = "default"; // "default" uses Adler-32; SHA-256/384/512 use the built-in .NET implementation.
var INTEGRITY_ALLOWED_ALGORITHMS = {
"sha1": false, // Enable only for compatibility with Windows XP and earlier.
"sha256": true,
"sha384": true,
"sha512": true
};
var INTEGRITY_HASHES = {/* // Integrity hashes for the "helloworld" example
"7b5c4d89": true, "779be011": true, "c9dee731": true,
"f1f021aa": true, "31868529": true, "33a07569": true,
"bef1d428": true, "fc87516d": true, "45d5a78b": true,
"38768236": true, "c51e7fc4": true, "cbd7d9d6": true,
"8c47c4c5": true, "3b0772dd": true, "2eb51cc4": true,
"59d846e3": true, "ed349cb7": true, "68b231de": true,
"5e5157c1": true, "e1de4567": true, "98524d82": true
*/};