From 5ed9819c4feac1f5a0d77e6c2de06a641190a4ca Mon Sep 17 00:00:00 2001 From: rift <117926989+Riftriot@users.noreply.github.com> Date: Thu, 28 Dec 2023 11:50:58 -0600 Subject: [PATCH] Make AES more random --- src/pages/Home.tsx | 5 ++++- src/pages/ProxyFrame.tsx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 09d3bb5..1284cdf 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -14,7 +14,10 @@ export function Home() { "/go/" + encodeURIComponent( //@ts-ignore - enc(inputValue, "295E1389FED4F2187D992178A53F9").substring(10) + enc( + inputValue, + window.location.origin.slice(8) + navigator.userAgent + ).substring(10) ); }; diff --git a/src/pages/ProxyFrame.tsx b/src/pages/ProxyFrame.tsx index 1416cdc..a5ae7a8 100644 --- a/src/pages/ProxyFrame.tsx +++ b/src/pages/ProxyFrame.tsx @@ -28,7 +28,7 @@ export function ProxyFrame(props: { url: string }) { //@ts-ignore let decodedUrl = dec( "U2FsdGVkX1" + decodeURIComponent(props.url), - "295E1389FED4F2187D992178A53F9" + window.location.origin.slice(8) + navigator.userAgent ); //attempt to convert to a valid url decodedUrl = searchUtil(decodedUrl, searchEngine);