JavaScript Restrictor
Browser extension that improves privacy and security
|
Functions | |
if (root.JS_SHA256_NO_WINDOW) | |
if (NODE_JS) | |
if (root.JS_SHA256_NO_NODE_JS||!Array.isArray) | |
if (ARRAY_BUFFER &&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)) | |
function | Sha256 (is224, sharedMemory) |
function | HmacSha256 (key, is224, sharedMemory) |
Variables | |
var | ERROR = 'input is invalid type' |
var | WINDOW = typeof window === 'object' |
var | root = WINDOW ? window : {} |
var | WEB_WORKER = !WINDOW && typeof self === 'object' |
var | NODE_JS = !root.JS_SHA256_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node |
var | COMMON_JS = !root.JS_SHA256_NO_COMMON_JS && typeof module === 'object' && module.exports |
var | AMD = typeof define === 'function' && define.amd |
var | ARRAY_BUFFER = !root.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined' |
var | HEX_CHARS = '0123456789abcdef'.split('') |
var | EXTRA = [-2147483648, 8388608, 32768, 128] |
var | SHIFT = [24, 16, 8, 0] |
var | K |
var | OUTPUT_TYPES = ['hex', 'array', 'digest', 'arrayBuffer'] |
var | blocks = [] |
var | createOutputMethod |
var | createMethod |
var | nodeWrap |
var | createHmacOutputMethod |
var | createHmacMethod |
Sha256 prototype | update |
Sha256 prototype | finalize |
Sha256 prototype | hash |
Sha256 prototype | hex |
Sha256 prototype | toString = Sha256.prototype.hex |
Sha256 prototype | digest |
Sha256 prototype | array = Sha256.prototype.digest |
Sha256 prototype | arrayBuffer |
HmacSha256 | prototype = new Sha256() |
var | exports = createMethod() |
exports | sha256 = exports |
exports | sha224 = createMethod(true) |
exports sha256 | hmac = createHmacMethod() |
else | |
function HmacSha256 | ( | key, | |
is224, | |||
sharedMemory | |||
) |
if | ( | ARRAY_BUFFER &&root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView | ) |
if | ( | NODE_JS | ) |
if | ( | root.JS_SHA256_NO_NODE_JS||!Array. | isArray | ) |
if | ( | root. | JS_SHA256_NO_WINDOW | ) |
function Sha256 | ( | is224, | |
sharedMemory | |||
) |
var AMD = typeof define === 'function' && define.amd |
Sha256 prototype array = Sha256.prototype.digest |
var ARRAY_BUFFER = !root.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined' |
var blocks = [] |
var COMMON_JS = !root.JS_SHA256_NO_COMMON_JS && typeof module === 'object' && module.exports |
var createHmacMethod |
var createHmacOutputMethod |
var createMethod |
var createOutputMethod |
else |
var ERROR = 'input is invalid type' |
[js-sha256]https://github.com/emn178/js-sha256
var exports = createMethod() |
var EXTRA = [-2147483648, 8388608, 32768, 128] |
HmacSha256 prototype finalize |
var HEX_CHARS = '0123456789abcdef'.split('') |
exports sha224 hmac = createHmacMethod() |
var K |
var NODE_JS = !root.JS_SHA256_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node |
var nodeWrap |
var OUTPUT_TYPES = ['hex', 'array', 'digest', 'arrayBuffer'] |
HmacSha256 prototype = new Sha256() |
var root = WINDOW ? window : {} |
root sha224 = createMethod(true) |
var SHIFT = [24, 16, 8, 0] |
Sha256 prototype toString = Sha256.prototype.hex |
var WEB_WORKER = !WINDOW && typeof self === 'object' |
var WINDOW = typeof window === 'object' |