mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 13:16:05 +00:00
Update app.js
This commit is contained in:
parent
79c64726e2
commit
bafc0a085d
5
app.js
5
app.js
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user