This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run argv | |
set passedInURL to (item 1 of argv) | |
tell application "Google Chrome" | |
set windowList to every tab of every window whose URL starts with passedInURL | |
repeat with tabList in windowList | |
set tabList to tabList as any | |
repeat with tabItr in tabList | |
set tabItr to tabItr as any | |
delete tabItr | |
end repeat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
/** | |
* AES file encryption with authentication (using Promises) | |
* (C) Habib Rehman 2016 | |
******************************/ | |
const encrypt = function (origpath, destpath, key) { | |
// decrypts any arbitrary data passed with the pass | |
return new Promise(function (resolve, reject) { | |
// readstream to read the (unencrypted) file |
NewerOlder