I know years ago (like, Client Server Focus version 3.x) you could encrypt a focexec on the drive in order to hide sensitive content inside it. I'd like to map a network drive with a specific userid and password, and I'd like that DOS command to be in an encrypted focexec. Is there a way to do that?
I did a search on Encrypt Focexec and got no results here, but I figure I must not be the first to ask.This message has been edited. Last edited by: FP Mod Chuck,
December 17, 2019, 12:43 PM
FP Mod Chuck
John
I tried this with 8206 and it worked fine.
To encrypt a file you can use this syntax within a FOCEXEC:
SET PASS = password (password that allows for decryption) ENCRYPT FILE filename FOCEXEC
Alternatively, to decrypt the file you can use this syntax:
SET PASS = password (password that allows for decryption) DECRYPT FILE filename FOCEXEC
In my case I am logged into the reporting server console as srvadmin so I used that as the password
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
December 17, 2019, 01:04 PM
John_Edwards
That will do nicely! Thank you very much!
Somebody buy that man a beer!
December 17, 2019, 01:57 PM
Waz
Recommendation:
If you are encrypting your fex, and have paranoia issues like me, I would suggest you also handle execution output as well.
This code will stop the output.
-SET &ECHO_BK=&ECHO ;
-SET &ECHO=OFF;
SET MSG=OFF, EMGSRV=OFF
-RUN
{your code}
-SET &ECHO=&ECHO_BK;
SET MSG=ON, EMGSRV=ON
-RUN
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
December 17, 2019, 01:59 PM
FP Mod Chuck
FYI - The only message I got back was that the file was encrypted or decrypted.
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
December 18, 2019, 03:36 AM
Tony A
quote:
FYI - The only message I got back was that the file was encrypted or decrypted.
Hi Chuck,
Waz means to stop someone from listing the encrypted focexec by using -SET &ECHO=ALL;
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
December 18, 2019, 08:30 AM
John_Edwards
Yep, I did the exact same thing just to make sure. Great tip, worth posting.
December 18, 2019, 10:19 AM
FP Mod Chuck
Gotcha...
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats