At 14:39 +0200 2005/09/27, Bjvrn Eklund wrote:
I would like to do some encryption of data in a Unidata file. I wonder if
there is someone who has a MD5 hashing unibasic subroutine that I could use.

There was some discussion on this in the past. I'll try to dig-up the URL to a package that somebody wrote. But, there is one major problem. It seems UniData on 64-bit platforms really doesn't do 32-bit math well. Fortunately, the past several releases of UniData have included OpenSSL in the $UDTHOME/bin directory.

It's fairly easy to shell-out and call 'openssl' for hashing or encryption. The only real "gotcha" is that 'echo' in different shells behaves differently and it may take some trial and error to get the right combination of \c, -n, etc.. If you want this to be portable, or if users may have different shells, then be sure to use the 'echo' executable (usually /usr/bin/echo) and not the echo command that's built-in to the shell.

Ray
--
.=================================================================.
| =-=-=-=-=-=-= Eagle Rock Information Systems Corp =-=-=-=-=-=-= |
| -=-=-=-=-=-=- web and database business solutions -=-=-=-=-=-=- |
|   <http://www.eriscorp.com>        <mailto:[EMAIL PROTECTED]>   |
|Midwest Regional Office: 815-547-0662 (voice)  815-547-0353 (Fax)|
.=================================================================.
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to