const index401 = `
401 - UUID Not Valid
Not set valid UUID in Environment Variables.
Please use tool to generate and remember UUID or use this one
You must use same UUID for login this page after config valid UUID Environment Variables
`;
const page404 = `
404 Not Found
404 Not Found
nginx/1.23.4
`;
async function digestMessage(message: string) {
const msgUint8 = new TextEncoder().encode(message); // encode as (utf-8) Uint8Array
const hashBuffer = await crypto.subtle.digest('SHA-256', msgUint8); // hash the message
const hashArray = Array.from(new Uint8Array(hashBuffer)); // convert buffer to byte array
const hashHex = hashArray
.map((b) => b.toString(16).padStart(2, '0'))
.join(''); // convert bytes to hex string
return hashHex;
}
export { index401, page404, digestMessage };