Lib stays encrypted, gets decrypted automatically

Post AHK_H specific scripts & libraries and discuss the usage and development of HotKeyIt's fork/branch
Qysh
Posts: 143
Joined: 24 Apr 2018, 09:16

Re: Lib stays encrypted, gets decrypted automatically

Post by Qysh » 27 Jun 2018, 15:23

You would need a launcher that encrypts the libary and then launches the main script
User avatar
Masonjar13
Posts: 1394
Joined: 20 Jul 2014, 10:16
GitHub: Masonjar13
Location: Не Россия

Re: Lib stays encrypted, gets decrypted automatically

Post by Masonjar13 » 06 Jul 2018, 20:27

In terms of keeping the library itself encrypted, but still have the ability to auto-include (if that's what you're going for), I have no idea how to do that. But, there's a few options for keeping encrypted library files.

1) Use Deo's library. You can encrypt the file beforehand, decrypt them in the main script to use. You can even use #include; use #include *i, check if it was included (check a variable or something), then if it's not, decrypt it and reload the script. This will likely cause an error if you're calling functions though (function not found error). In that case, as mentioned, use a launcher script.

2) Use my PIN class. It's essentially an easy-to-use encrypted file wrapper for Deo's library. You can use the same methods I mentioned above.

In pretty much any case that full #include functionality is needed, you'll need a separate launcher.
tmplinshi
Posts: 1261
Joined: 01 Oct 2013, 14:57

Re: Lib stays encrypted, gets decrypted automatically

Post by tmplinshi » 07 Jul 2018, 02:43

Not sure if Enigma Virtual Box suit your needs
https://autohotkey.com/boards/viewtopic ... 32#p226509
Post Reply

Return to “AutoHotkey_H”