mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-10-04 07:01:53 +00:00
Update encryptor.js
This commit is contained in:
parent
e0df993bad
commit
05df3518ac
|
@ -12,13 +12,13 @@ function main(args) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var filename = args[0];
|
||||||
var dstfile = filename + ".enc";
|
var dstfile = filename + ".enc";
|
||||||
if (FILE.fileExists(dstfile)) {
|
if (FILE.fileExists(dstfile)) {
|
||||||
console.error(dstfile, "already exists. Please delete it.");
|
console.error(dstfile, "already exists. Please delete it.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
var filename = args[0];
|
|
||||||
var userKey = '';
|
var userKey = '';
|
||||||
while (userKey.length == 0 || userKey.length > 16) {
|
while (userKey.length == 0 || userKey.length > 16) {
|
||||||
userKey = Toolkit.prompt("Please enter the password for encryption:");
|
userKey = Toolkit.prompt("Please enter the password for encryption:");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user