mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-23 10:39:40 +08:00
各种 bug 修复
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user