mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
Update encryptor.js
This commit is contained in:
parent
94f11d73cd
commit
85fd0e2e01
|
@ -17,11 +17,11 @@ function main(args) {
|
|||
while (userKey.length == 0 || userKey.length > 16) {
|
||||
userKey = Toolkit.prompt("Please enter the password for encryption:");
|
||||
}
|
||||
var data = FILE.readFile(filename, "utf-8");
|
||||
var data = FILE.readFile(filename, FILE.CdoCharset.CdoUTF_8);
|
||||
var encryptedData = Toolkit.encryptStringHIGHT(userKey, data);
|
||||
|
||||
var dstfile = filename + ".enc";
|
||||
FILE.writeFile(dstfile, encryptedData, "utf-8");
|
||||
FILE.writeFile(dstfile, encryptedData, FILE.CdoCharset.CdoUTF_8);
|
||||
console.log("Saved to", dstfile);
|
||||
|
||||
console.log("Done");
|
||||
|
|
Loading…
Reference in New Issue
Block a user