各种 bug 修复

This commit is contained in:
fofolee
2019-09-23 11:37:39 +08:00
parent dc5f559f98
commit fcbb15455b
13 changed files with 252 additions and 221 deletions

View File

@@ -1,5 +1,6 @@
const { clipboard } = require('electron');
const { exec } = require('child_process');
const crypto = require('crypto')
const robot = utools.robot
//-------checkUpdate------
@@ -70,4 +71,11 @@ copy = () => {
paste = () => {
var ctlKey = isWin ? 'control' : 'command';
robot.keyTap('v', ctlKey);
}
rc4 = (text, key) => {
var decipher = crypto.createDecipher('rc4', key);
var result = decipher.update(text, 'base64', 'utf8');
result += decipher.final('utf8');
return result
}