- Log in to post comments
User bio
404 bio not found
Member since Oct 9, 2018
Posts:
Replies:
To encrypt to MD5 (as javascript, unix and others) I writed this classmethod, using information found here, and works very well.
ClassMethodEncripta(pass)As%String
{
setintermedio=##class(%SYSTEM.Encryption).MD5Hash(pass)
setmd5HashHex=""
fori=1:1:$Length(intermedio){
sethexaIntermedio=$Zhex($Ascii($Extract(intermedio,i)))
if$Length(hexaIntermedio)=1{
sethexaIntermedio="0"_hexaIntermedio
}
setmd5HashHex=md5HashHex_hexaIntermedio
}
return$ZConvert(md5HashHex,"L")
}
Just need to use " d Encripta("word")"
I hope could be useful!
Joe!
- Log in to post comments
In addition to Scott answer, I need to add one additional parameter:
databaseName=<database>;trustServerCertificate=true;domain=<domain>;useNTLMv2=true;cacheMetaData=true;prepareSQL=2
Thanks for the post Scott, it was very helpful!
Regards, Joel
- Log in to post comments
Open Exchange applications:
Certifications & Credly badges:
Followers:
Joel has no followers yet.
Following:
Joel has not followed anybody yet.
Great post!