Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Encrypt a focexec?
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Encrypt a focexec?
 Login/Join
 
Master
posted
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,



 
Posts: 954 | Location: At the Mast | Registered: May 17, 2007Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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
 
Posts: 1749 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
Master
posted Hide Post
That will do nicely! Thank you very much!

Somebody buy that man a beer!



 
Posts: 954 | Location: At the Mast | Registered: May 17, 2007Reply With QuoteReport This Post
Expert
posted Hide Post
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.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6205 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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
 
Posts: 1749 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
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; Smiler

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5637 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Master
posted Hide Post
Yep, I did the exact same thing just to make sure. Great tip, worth posting.



 
Posts: 954 | Location: At the Mast | Registered: May 17, 2007Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Gotcha... Good One


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 1749 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Encrypt a focexec?

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.