Update app.js

This commit is contained in:
Namhyeon Go 2024-01-26 16:57:53 +09:00
parent 79c64726e2
commit bafc0a085d

5
app.js
View File

@ -294,12 +294,17 @@ function require(FN) {
case ".enc": // Encrypted
T = (function(encryptedData) {
try {
var toolkit = CreateObject("WelsonJS.Toolkit");
var userKey = '';
while (userKey.length == 0 || userKey.length > 16) {
userKey = toolkit.Prompt("Enter the password:");
}
return toolkit.DecryptStringHIGHT(encryptedData);
} catch (e) {
console.error("Failed to load the encrypted data:", e.message);
return '';
}
})(T);
break;