Update encryptor.js

This commit is contained in:
Namhyeon Go 2024-03-19 18:00:08 +09:00
parent e0df993bad
commit 05df3518ac

View File

@ -12,13 +12,13 @@ function main(args) {
return 0;
}
var filename = args[0];
var dstfile = filename + ".enc";
if (FILE.fileExists(dstfile)) {
console.error(dstfile, "already exists. Please delete it.");
return 0;
}
var filename = args[0];
var userKey = '';
while (userKey.length == 0 || userKey.length > 16) {
userKey = Toolkit.prompt("Please enter the password for encryption:");