How big is your input string?

In the past, I've had to break down the input into smaller 100 byte chunks and 
concatenate to get the result.


Tiny: 20 ascii chars or less.

-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Jeffrey Butera
Sent: Monday, September 20, 2010 3:44 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] Unidata 7.2.5 and Digest

   Unidata 7.2.5 on RedHat 5.

I'm trying to SHA1 some data and get it back with some human readable
output (hex is fine).  This snippet works for other Unidata people (who
have emailed me privately) but not me:


X.DATA = '1234567'
X.ERROR=DIGEST('SHA1',X.DATA,1,X.OUT)
CRT 'DIGEST err=':X.ERROR

X.RESULT = OCONV(X.OUT, "MX")
CRT 'OCONV res=':X.RESULT

Instead of giving me a nice hash result, I get binary output:

DIGEST err=0
OCONV res=ê¾]d°âynORÖз2ü

I'm trying to determine why this would cause problems on my server but
not for others.

--
Jeff Butera, Ph.D.
Manager of ERP Systems
Hampshire College
jbut...@hampshire.edu
413-559-5556

"...we must choose between what is right and what is easy..."
                                        Dumbledore

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
<html>
<body>
________________________________ Dave Davis Team Lead, R&amp;D P: 614-875-4910 
x108 F: 614-875-4088 E: dda...@harriscomputer.com 
[http://www.harriscomputer.com/images/signatures/HarrisSchools.gif] 
[http://www.harriscomputer.com/images/signatures/DivisionofHarris.gif]
  6110 Enterprise Parkway Grove City, OH 43123 www.harris-schoolsolutions.com 
This message is intended exclusively for the individual or entity to which it 
is addressed. This communication may contain information that is proprietary, 
privileged or confidential
  or otherwise legally exempt from disclosure. If you are not the named 
addressee, you are not authorized to read, print, retain, copy or disseminate 
this message or any part of it. If you have received this message in error, 
please notify the sender immediately
  by e-mail and delete all copies of the message.
</body>
</html>


--
Jeff Butera, Ph.D.
Manager of ERP Systems
Hampshire College
jbut...@hampshire.edu
413-559-5556

"...we must choose between what is right and what is easy..."
                                      Dumbledore

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to