Focal Point
[SOLVED] encrypt on AIX/Unix

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4871097203

October 15, 2008, 04:02 PM
Rhonda
[SOLVED] encrypt on AIX/Unix
Does anyone have sample code to encrypt a file, on AIX? Of course it needs to be encrypted with a password and then decrypted.

Thanks for any help or direction you can give me.
Rhonda

This message has been edited. Last edited by: Kerry,


WebFOCUS & ReportCaster 8.1.05, 7.7.03 - AIX/LINUX, FOCUS 7.6.13 MVS, Output PDF, XLS-XLSX, DOCX and HTML
October 15, 2008, 04:28 PM
GinnyJakes
Rhonda,

The syntax for AIX encryption, and I'm assuming that you are talking about WebFOCUS encryption, is the same on all platforms.

The password is arbitrary and I think up to 7.6.5, though not sure of the lifting of the restriction, it must be in upper case.

Also the syntax varies based on the type of file you are encrypting.

For a master:

SET PASS=YOURPASS
ENCRYPT FILE masname


For a focexec:

SET PASS=YOURPASS
ENCRYPT FILE fexname FOCEXEC


To decrypt, use the work DECRYPT instead of ENCRYPT.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
October 15, 2008, 05:14 PM
Rhonda
Hi Ginny - I should have been more specific, I meant operating system command. I am looking for the syntax to encrypt a file on AIX outside for WebFOCUS.

Thanks!


WebFOCUS & ReportCaster 8.1.05, 7.7.03 - AIX/LINUX, FOCUS 7.6.13 MVS, Output PDF, XLS-XLSX, DOCX and HTML
October 15, 2008, 05:31 PM
GinnyJakes
If it is encrypted using an OS command, how are you going to use the file in WebFOCUS?


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
October 16, 2008, 08:17 AM
GamP
Rhonda,

I do not know of any native AIX command that does encryption for you. There may be some third party package that you could buy to do the encryption. On the other hand, you do already have (Web)Focus. That package can do the encryption for you ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
October 16, 2008, 08:50 AM
Rhonda
Unfortunately we are using 7.1.6 and WebFOCUS encryption does not work on AHTML files. We have decided to wait until we upgrade to 7.6x to do what we want.
Thanks for your help.


WebFOCUS & ReportCaster 8.1.05, 7.7.03 - AIX/LINUX, FOCUS 7.6.13 MVS, Output PDF, XLS-XLSX, DOCX and HTML
October 16, 2008, 09:11 AM
Rhonda
Hi Ginny
That's OK if it is encrypted outside of WebFOCUS. We were looking to implement a workaround to encrypting reports and using
ReportCaster to distribute the reports. We have decided to wait until we upgrade to 7.6x where this issue has been addressed.
Thanks!


WebFOCUS & ReportCaster 8.1.05, 7.7.03 - AIX/LINUX, FOCUS 7.6.13 MVS, Output PDF, XLS-XLSX, DOCX and HTML
October 16, 2008, 06:03 PM
StuBouyer
quote:
Originally posted by Rhonda:
Hi Ginny
That's OK if it is encrypted outside of WebFOCUS. We were looking to implement a workaround to encrypting reports and using
ReportCaster to distribute the reports. We have decided to wait until we upgrade to 7.6x where this issue has been addressed.
Thanks!


If you distributing by email then you might be able to apply S/MIME (wikipedia link) or another public key encryption application (PGP, OpenPGP, GnuPG) to ensure that if the wrong people get it they can't read it. This will take some setting up with your users and mail admin however.

Cheers

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
October 17, 2008, 11:33 AM
ira
uuencode and uudecode? are those just dos based encryptions?
try googling 'aix command to encrypt a file' there were some OTFE commands listed.
also you may want to look into: "ccrypt" it is a util for encrypting/decrypting files 'n streams. It was intended as a replacement for the standard unix crypt utility.

Good luck.
Ira
AIX 533 WF 538 (DEV)


aix-533,websphere 5.1.1,apache-2.0,
wf 538(d), 537 (p),
==============
7.6.11 (t) aix 5312
websphere 6.1.19
apache 2.0
October 17, 2008, 11:46 AM
Rhonda
Thanks to everyone for their suggestions and recommendations!


WebFOCUS & ReportCaster 8.1.05, 7.7.03 - AIX/LINUX, FOCUS 7.6.13 MVS, Output PDF, XLS-XLSX, DOCX and HTML