diff --git a/encryptor.js b/encryptor.js index ab867d5..e68dc05 100644 --- a/encryptor.js +++ b/encryptor.js @@ -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:");