Actually, you need to parse character by character:
       NB.CS = LEN(HASHED.TEXT)
       NEW.TEXT = ""
       FOR THE.C = 1 TO NB.CS
          NEW.TEXT := OCONV(HASHED.TEXT[THE.C,1],"MX0C")
       NEXT THE.C
Where HASHED.TEXT is your encrypted string. Took me by surprise too!

Laure Hansen,
City of Redwood City - Information Technology
1017 Middlefield Road - Redwood City, CA 94063
Office 650-780-7087 - Cell 650-207-3235 - Fax 650-556-9204
lhan...@redwoodcity.org

 Please think green before printing this e-mail

Subscribe to receive Redwood City E-News, news releases,
or other documents via email: Click here to register/subscribe


-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Henry Unger
Sent: Tuesday, August 11, 2009 12:38 PM
To: 'U2 Users List'
Subject: Re: [U2] Help with encryption

Try MX0C.

Best regards,

Henry

Henry P. Unger
Hitech Systems, Inc.
http://www.hitech.com

-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of m3p
Sent: Tuesday, August 11, 2009 12:36 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Help with encryption


Hello all,

The code below:

RESULT = ''
STATUS = DIGEST('MD5','THIS IS A TEST',1,RESULT)
PRINT 'STATUS = ' : STATUS
PRINT 'RESULT = ' : OCONV(RESULT,'MX')


works fine, except...  I keep getting binary data displayed, despite the
OCONV(RESULT,'MX')

Anyone have an idea how to turn the RESULT into a string of Hex characters?

Replies are much appreciated, thanks.



IT-Laure Hansen wrote:
>
> Does anyone know how to cause MD5 hashing in Universe? UV 10.2.3 on
> Win2003
> server. I am hoping for a Basic command that I can run on a desired piece
> of
> data. Reading documentation so far hasn't helped, am I wanting to do
> something
> that is not available to me?
>
> Thanks in advance!
>
> Laure Hansen,
> City of Redwood City - Information Technology
> 1017 Middlefield Road - Redwood City, CA 94063
> Office 650-780-7087 - Cell 650-207-3235 - Fax 650-556-9204
> lhan...@redwoodcity.org<mailto:lhan...@redwoodcity.org>
>
> P Please think green before printing this e-mail
>
> Subscribe to receive Redwood City E-News, news releases,
> or other documents via email: Click here to
> register/subscribe<http://www.redwoodcity.org/eGov/login.aspx?ref=/egov/index
> .aspx>
> -------
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
>
>

--
View this message in context: 
http://www.nabble.com/Help-with-encryption-tp23508833p24924344.html
Sent from the U2 - Users mailing list archive at Nabble.com.

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

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

Reply via email to