CyberChef/modules/Crypto.js

2 lines
1.7 MiB
JavaScript
Raw Permalink Normal View History

2025-04-05 18:13:43 +00:00
/*! For license information please see Crypto.js.LICENSE.txt */
(()=>{var t,e,r={53905:(t,e,r)=>{var n,i=r(65606),a="undefined"!=typeof self&&void 0!==self.Module?self.Module:{},s={};for(n in a)a.hasOwnProperty(n)&&(s[n]=a[n]);var o,u,h,c,l=[];o="object"==typeof window,u="function"==typeof importScripts,h="object"==typeof i&&"object"==typeof i.versions&&"string"==typeof i.versions.node,c=!o&&!h&&!u;var f,d,p,g,m,y="";h?(y=u?r(43627).dirname(y)+"/":"//",f=function(t,e){return g||(g=r(42789)),m||(m=r(43627)),t=m.normalize(t),g.readFileSync(t,e?null:"utf8")},p=function(t){var e=f(t,!0);return e.buffer||(e=new Uint8Array(e)),E(e.buffer),e},i.argv.length>1&&i.argv[1].replace(/\\/g,"/"),l=i.argv.slice(2),t.exports=a,i.on("uncaughtException",(function(t){if(!(t instanceof q))throw t})),i.on("unhandledRejection",D),a.inspect=function(){return"[Emscripten Module object]"}):c?("undefined"!=typeof read&&(f=function(t){return read(t)}),p=function(t){var e;return"function"==typeof readbuffer?new Uint8Array(readbuffer(t)):(E("object"==typeof(e=read(t,"binary"))),e)},"undefined"!=typeof scriptArgs?l=scriptArgs:"undefined"!=typeof arguments&&(l=arguments),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(o||u)&&(u?y=self.location.href:"undefined"!=typeof document&&document.currentScript&&(y=document.currentScript.src),y=0!==y.indexOf("blob:")?y.substr(0,y.lastIndexOf("/")+1):"",f=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},u&&(p=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),d=function(t,e,r){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)}),a.print||console.log.bind(console);var A,v,b=a.printErr||console.warn.bind(console);for(n in s)s.hasOwnProperty(n)&&(a[n]=s[n]);s=null,a.arguments&&(l=a.arguments),a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(A=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&D("no native wasm support detected");var w=!1;function E(t,e){t||D("Assertion failed: "+e)}var C,S,I="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function B(t){C=t,a.HEAP8=new Int8Array(t),a.HEAP16=new Int16Array(t),a.HEAP32=new Int32Array(t),a.HEAPU8=S=new Uint8Array(t),a.HEAPU16=new Uint16Array(t),a.HEAPU32=new Uint32Array(t),a.HEAPF32=new Float32Array(t),a.HEAPF64=new Float64Array(t)}a.INITIAL_MEMORY;var _,M=[],x=[],T=[],R=0,F=null,k=null;function D(t){throw a.onAbort&&a.onAbort(t),b(t+=""),w=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function L(t){return t.startsWith("data:application/octet-stream;base64,")}function N(t){return t.startsWith("file://")}a.preloadedImages={},a.preloadedAudios={};var H,P="argon2.wasm";function U(t){try{if(t==P&&A)return new Uint8Array(A);if(p)return p(t);throw"both async and sync fetching of the wasm failed"}catch(t){D(t)}}function O(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?_.get(r)():_.get(r)(e.arg):r(void 0===e.arg?null:e.arg)}else e(a)}}function Q(t){try{return v.grow(t-C.byteLength+65535>>>16),B(v.buffer),1}catch(t){}}L(P)||(H=P,P=a.locateFile?a.locateFile(H,y):y+H);var j,K={a:function(t,e,r){S.copyWithin(t,e,e+r)},b:function(t){var e,r=S.length,n=2147418112;if((t>>>=0)>n)return!1;for(var i=1;i<=4;i*=2){var a=r*(1+.2/i);if(a=Math.min(a,t+100663296),Q(Math.min(n,((e=Math.max(t,a))%65536>0&&(e+=65536-e%65536),e))))return!0}return!1}},V=(function(){var t={a:K};function e(t,e){var r,n=t.exports;a.asm=n,B((v=a.asm.c).buffer),_=a.asm.k,r=a.asm.d,x.unshift(r),function(){if(R--,a.monitorRunDependencies&&a.monitorRunDependencies(R),0==R&&(null!==F&&(clearInterval(F),F=null),k)){var t=k;k=null,t()}}()}function r(t){e(t.instance)}function n(e){return function(){if(!A&&(o||u)){if("function"==typeof fetch&&!N(P))return fetch(P,{credentials:"same-origin"}