infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Cloverleaf
One-way hash using md5 or sha256 or equivalent
Alfred Cox
I'm trying to hash the patient's medical record number going from within Cloverleaf 6.1.5 to an outside application. Any suggestions?
Thanks in advance!
Buzzy
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Do you mind using blowfish? Is this from inside an Xlate? I have a proc which will encrypt using blowfish. I know I have one for inside and Xlate and I think I have one for TPS UPoC.
If blowfish is not appropriate, then Tcl has MD% and other cipher capability though I have not written anything for them.
Rob Abbott
I have used the tcllib md5 and it works well. Tcllib is shipped with Cloverleaf.
https://core.tcl-lang.org/tcllib/doc/trunk/embedded/md/tcllib/files/modules/md5/md5.md
Alfred Cox
Yes, I saw that it is there. Just having a hard time figuring out how to use it inside an xlate.
Alfred Cox
Yes, if you could share the code for inside the xlate that would be great.
Jim Kosloskey
email me and I will attach it to the reply.
RobertKersemakers
I googled it when I needed a bit of md5 hashing and came up with this.
lassign $xlateInVals fn
package require md5
set m [md5::md5 -hex $fn]
echo $fn $m
set xlateOutVals [list $m]
Alfred Cox
That's perfect! Thank you sir!