Re: [U2] Unidata 7.2.5 and Digest
In a message dated 9/20/2010 12:45:04 PM Pacific Daylight Time, jbut...@hampshire.edu writes: Instead of giving me a nice hash result, I get binary output: DIGEST err=0 OCONV res=ê¾]d°âynORÖз2ü Blink. Binary output ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
[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
Re: [U2] Unidata 7.2.5 and Digest
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. -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, Ramp;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 ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Unidata 7.2.5 and Digest
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, Ramp;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
[U2] Unidata 7.2.5 and Digest
Jeff: I just ran this on UD v7.2.7 on Windows 2008 R2 server and UD v7.1.9 on a Windows 2003 server: 3 Dev (0)- BPTEST 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 ; END Compiling Unibasic: SAVEDLISTS\BpTest_523735291 in mode 'p'. compilation finished DIGEST err = 0 OCONV res = 20EABE5D64B0E216796E834F52D61FD0B70332FC It seems to work fine for me (assuming the hex output is correct). :-) HTH, Bill Jeffrey Butera said the following on 9/20/2010 12:44 PM: 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. ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Unidata 7.2.5 and Digest
Big thanks to Bill and Rex for getting me started, but Andy wins the gold star - this indeed resolved my issue! On 9/20/2010 8:05 PM, andy baum wrote: Try using a conversion of MX0C, using a conversion of MX I get the same results as you using the latest version of Unidate PE on Windows 7 but MX0C seems to give proper results. -- Jeff Butera Hampshire College jbut...@hampshire.edu 413-559-5556 ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users