Baker,

I don't know if you are trying to do this via a Unibasic subroutine call or
by using EXECUTE. I could not use the Unibasic because the Unidata version
was not 7.1 so I used the following. I had a lot of trouble with char(10)
also until I found the "-a -A" flags.

This works well on Solaris and Unidata 6.0. I sure you can see the command
we are EXECUTING and capturing the result.

george

CMD = ""
CMD = "echo ":                   PKT
CMD := "|openssl enc -a -A"
CMD := " -iv ":                  IV
CMD := " -":                     ALGORITHM
CMD := " -K ":                   KEY
CMD := " -out ":                 PATH
CMD := "/":                      FILE.NAME

 CMD = ""
 CMD = "openssl enc -d -a -A"
 CMD := " -iv ":                  IV
 CMD := " -":                     ALGORITHM
 CMD := " -K ":                   KEY
 CMD := " -in ":                  PATH
 CMD := "/":                      FILE.NAME


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:owner-u2-
> [EMAIL PROTECTED] On Behalf Of Baker Hughes
> Sent: Thursday, August 24, 2006 9:35 AM
> To: [email protected]
> Subject: [U2] Encrypt issue 8088
> 
> Hi,
> 
> Can anyone share a code fragment for removing the extra Char(10)
> characters from the Encrypt function.
> 
> I've studied the IBM articles (2) on U2 Encryption, and read the
> previous posts on this list.  I've tried to remove the extra LF with
> less than sterling results.  I can't find the char(10), whether I do or
> don't encode.  If I add an extra char(10) for Decrypt it overruns the
> expected length and craters.
> 
> Before I resort to shelling out to Unix and running Openssl I'd like to
> exhaust the native U2 Encrypt possibility.
> 
> We are on UniVerse 10.0 - the articles by Nik Kesic speculate that the
> Encrypt patch will arrive in 10.2, but I'm not certain when/if we'll
> load 10.2 anyway.
> 
> Always enlightening reading this list. I'm thankful for you guys (in the
> NY sense of the word, inclusive of gals)[Y'all, for other Southerners.]
> 
> TIA,
> -Baker
> 
> 
> R. Baker Hughes
> UniVerse Programming
> Mouser Electronics, Inc.
> (817) 804-3598 *
> [EMAIL PROTECTED] *
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to