mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Update encryptor.js
This commit is contained in:
parent
e0df993bad
commit
05df3518ac
|
@ -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:");
|
||||
|
|
Loading…
Reference in New Issue
Block a user