PageSourceSearch

https://www.widehorizonsretreat.com/files/theme/aes.js?1750620960

js widehorizonsretreat.com collected 2026-10-08 07:56:32 UTC 5,592 bytes, 1 lines download raw bytes

1"use strict";var Aes={};if(Aes.cipher=function(e,r){for(var o=4,n=r.length/o-1,t=[[],[],[],[]],f=0;4*o>f;f++)t[f%4][Math.floor(f/4)]=e[f];t=Aes.addRoundKey(t,r,0,o);for(var a=1;n>a;a++)t=Aes.subBytes(t,o),t=Aes.shiftRows(t,o),t=Aes.mixColumns(t,o),t=Aes.addRoundKey(t,r,a,o);t=Aes.subBytes(t,o),t=Aes.shiftRows(t,o),t=Aes.addRoundKey(t,r,n,o);for(var s=new Array(4*o),f=0;4*o>f;f++)s[f]=t[f%4][Math.floor(f/4)];return s},Aes.keyExpansion=function(e){for(var r=4,o=e.length/4,n=o+6,t=new Array(r*(n+1)),f=new Array(4),a=0;o>a;a++){var s=[e[4*a],e[4*a+1],e[4*a+2],e[4*a+3]];t[a]=s}for(var a=o;r*(n+1)>a;a++){t[a]=new Array(4);for(var i=0;4>i;i++)f[i]=t[a-1][i];if(a%o==0){f=Aes.subWord(Aes.rotWord(f));for(var i=0;4>i;i++)f[i]^=Aes.rCon[a/o][i]}else o>6&&a%o==4&&(f=Aes.subWord(f));for(var i=0;4>i;i++)t[a][i]=t[a-o][i]^f[i]}return t},Aes.subBytes=function(e,r){for(var o=0;4>o;o++)for(var n=0;r>n;n++)e[o][n]=Aes.sBox[e[o][n]];return e},Aes.shiftRows=function(e,r){for(var o=new Array(4),n=1;4>n;n++){for(var t=0;4>t;t++)o[t]=e[n][(t+n)%r];for(var t=0;4>t;t++)e[n][t]=o[t]}return e},Aes.mixColumns=function(e,r){for(var o=0;4>o;o++){for(var n=new Array(4),t=new Array(4),f=0;4>f;f++)n[f]=e[f][o],t[f]=128&e[f][o]?e[f][o]<<1^283:e[f][o]<<1;e[0][o]=t[0]^n[1]^t[1]^n[2]^n[3],e[1][o]=n[0]^t[1]^n[2]^t[2]^n[3],e[2][o]=n[0]^n[1]^t[2]^n[3]^t[3],e[3][o]=n[0]^t[0]^n[1]^n[2]^t[3]}return e},Aes.addRoundKey=function(e,r,o,n){for(var t=0;4>t;t++)for(var f=0;n>f;f++)e[t][f]^=r[4*o+f][t];return e},Aes.subWord=function(e){for(var r=0;4>r;r++)e[r]=Aes.sBox[e[r]];return e},Aes.rotWord=function(e){for(var r=e[0],o=0;3>o;o++)e[o]=e[o+1];return e[3]=r,e},Aes.sBox=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Aes.rCon=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]],"undefined"!=typeof module&&module.exports&&(module.exports=Aes),"function"==typeof define&&define.amd&&define([],function(){return Aes}),"undefined"!=typeof module&&module.exports)var Aes=require("./aes");Aes.Ctr={},Aes.Ctr.encrypt=function(e,r,o){var n=16;if(128!=o&&192!=o&&256!=o)return"";e=String(e).utf8Encode(),r=String(r).utf8Encode();for(var t=o/8,f=new Array(t),a=0;t>a;a++)f[a]=isNaN(r.charCodeAt(a))?0:r.charCodeAt(a);var s=Aes.cipher(f,Aes.keyExpansion(f));s=s.concat(s.slice(0,t-16));for(var i=new Array(n),u=(new Date).getTime(),d=u%1e3,c=Math.floor(u/1e3),A=Math.floor(65535*Math.random()),a=0;2>a;a++)i[a]=d>>>8*a&255;for(var a=0;2>a;a++)i[a+2]=A>>>8*a&255;for(var a=0;4>a;a++)i[a+4]=c>>>8*a&255;for(var y="",a=0;8>a;a++)y+=String.fromCharCode(i[a]);for(var p=Aes.keyExpansion(s),v=Math.ceil(e.length/n),h=new Array(v),l=0;v>l;l++){for(var g=0;4>g;g++)i[15-g]=l>>>8*g&255;for(var g=0;4>g;g++)i[15-g-4]=l/4294967296>>>8*g;for(var w=Aes.cipher(i,p),C=v-1>l?n:(e.length-1)%n+1,m=new Array(C),a=0;C>a;a++)m[a]=w[a]^e.charCodeAt(l*n+a),m[a]=String.fromCharCode(m[a]);h[l]=m.join("")}var b=y+h.join("");return b=b.base64Encode()},Aes.Ctr.decrypt=function(e,r,o){var n=16;if(128!=o&&192!=o&&256!=o)return"";e=String(e).base64Decode(),r=String(r).utf8Encode();for(var t=o/8,f=new Array(t),a=0;t>a;a++)f[a]=isNaN(r.charCodeAt(a))?0:r.charCodeAt(a);var s=Aes.cipher(f,Aes.keyExpansion(f));s=s.concat(s.slice(0,t-16));for(var i=new Array(8),u=e.slice(0,8),a=0;8>a;a++)i[a]=u.charCodeAt(a);for(var d=Aes.keyExpansion(s),c=Math.ceil((e.length-8)/n),A=new Array(c),y=0;c>y;y++)A[y]=e.slice(8+y*n,8+y*n+n);e=A;for(var p=new Array(e.length),y=0;c>y;y++){for(var v=0;4>v;v++)i[15-v]=y>>>8*v&255;for(var v=0;4>v;v++)i[15-v-4]=(y+1)/4294967296-1>>>8*v&255;for(var h=Aes.cipher(i,d),l=new Array(e[y].length),a=0;a<e[y].length;
1a++)l[a]=h[a]^e[y].charCodeAt(a),l[a]=String.fromCharCode(l[a]);p[y]=l.join("")}var g=p.join("");return g=g.utf8Decode()},"undefined"==typeof String.prototype.utf8Encode&&(String.prototype.utf8Encode=function(){return unescape(encodeURIComponent(this))}),"undefined"==typeof String.prototype.utf8Decode&&(String.prototype.utf8Decode=function(){try{return decodeURIComponent(escape(this))}catch(e){return this}}),"undefined"==typeof String.prototype.base64Encode&&(String.prototype.base64Encode=function(){if("undefined"!=typeof btoa)return btoa(this);if("undefined"!=typeof Buffer)return new Buffer(this,"utf8").toString("base64");throw new Error("No Base64 Encode")}),"undefined"==typeof String.prototype.base64Decode&&(String.prototype.base64Decode=function(){if("undefined"!=typeof atob)return atob(this);if("undefined"!=typeof Buffer)return new Buffer(this,"base64").toString("utf8");throw new Error("No Base64 Decode")}),"undefined"!=typeof module&&module.exports&&(module.exports=Aes.Ctr),"function"==typeof define&&define.amd&&define(["Aes"],function(){return Aes.Ctr});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.