unit Crypt;
interface
uses
System.SysUtils;
function Decrypt(const s: string): string;
implementation
function HexStrToInt(const str: string): Integer;
begin
Result := StrToInt('$' + str);
end;
function r(const e: string; const t: integer): integer;
var
s: string;
begin
s := Copy(e, t-1, 2);
Result := HexStrToInt(s);
end;
function Decrypt(const s: string): string;
var
i, c, a, x, l: integer;
begin
Result := '';
x := 2;
a := r(s, 0);
for i := 0 to 16 - 1 do
begin
inc(x, 2);
l := r(s, x) xor a;
Result := Result + Chr(l);
end;
end;
end.
function r(e, t) {
var r = e.substr(t, 2);
return parseInt(r, 16)
}
function n(n, c) {
for (var o = "", a = r(n, c), i = c + 2; i < n.length; i += 2) {
var l = r(n, i) ^ a;
o += String.fromCharCode(l)
}
console.log(o)
}
n("https://playcode.io/cdn-cgi/1/email-protection#f4978695999d8691c6b4939981da919081", 47)
function r(e, t) {
var r = e.substr(t, 2);
return parseInt(r, 16)
}
function n(n, c) {
console.log(n, c)
for (var o = "", a = r(n, c), i = c + 2; i < n.length; i += 2) {
var l = r(n, i) ^ a;
console.log(o)
o += String.fromCharCode(l)
}
try {
o = decodeURIComponent(escape(o))
} catch (u) {
e(u)
}
return t(o)
}
n("https://playcode.io/cdn-cgi/l/email-protection#82f2e9f7f2ebe7e1c2e4e6ebe1ace5edf4", 47)
PS C:\Projects\rit> docker-compose -f dc.dev.yml exec app php bin/api debug:router
-------------------------- -------- -------- ------ -----------------
Name Method Scheme Host Path
-------------------------- -------- -------- ------ -----------------
app_api_v1_product_index ANY ANY ANY /v1/product.get
app_api_v2_product_index ANY ANY ANY /v2/product.get
-------------------------- -------- -------- ------ -----------------
Туризм умер.
Явно мы работать 12 числа не будем, тут и этапы не помогут.