update url for testing and add file extension

This commit is contained in:
Bit Borealis 2022-08-12 01:47:01 +00:00
parent 97709bb733
commit 440b79a8b5
Signed by: theotheroracle
GPG key ID: 2D816A2DCA6E5649
2 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
var baseUrl = "https://0x0.st";
var id = "a0eiaje"; // < unicode >
var baseUrl = "https://envs.sh";
var id = "QnK"; // < unicode >
var key = "LhBRttf+oI/PNHyTBrPa7HGDK/uC9fcMkGGgz63zT4Y="; // 32 bytes b64
var completeUrl = baseUrl + "/" + id + "#" + key;
var completeUrl = baseUrl + "/" + id + ".bin#" + key;
console.log(completeUrl);
var urlObj = new URL(completeUrl);
/** will return a tuple of the key and id if valid

View file

@ -1,7 +1,7 @@
const baseUrl: string = "https://0x0.st"
const id: string = "a0eiaje" // < unicode >
const baseUrl: string = "https://envs.sh"
const id: string = "QnK" // < unicode >
const key: string = "LhBRttf+oI/PNHyTBrPa7HGDK/uC9fcMkGGgz63zT4Y=" // 32 bytes b64
const completeUrl: string = baseUrl + "/" + id + "#" + key
const completeUrl: string = baseUrl + "/" + id + ".bin#" + key
console.log(completeUrl);
const urlObj:URL = new URL(completeUrl);