Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Crypt-compatible COS function/implementation - has anyone seen this code?

Question
Adam Skurek · Sep 28, 2017

Crypt-compatible COS function/implementation - has anyone seen this code?

Hello,

 

I am looking for ObjectScript implementation of crypt-compatible function, that generates md5 salted hashes (output is in the form of $1$salt$hash). From what I understand it uses its own spin on md5 algorithm:

 

https://en.wikipedia.org/wiki/Crypt_(C)
http://php.net/manual/en/function.crypt.php
http://www.gnu.org/software/libc/manual/html_node/crypt.html

 

 

Does Cache have something like that built in?

Has somebody here seen it implemented somewhere?

 

Thanks.

 

 

Added:

I have found description of the underlying algorithm here: https://www.vidarholen.net/contents/blog/?p=32

#Caché

Source URL:https://community.intersystems.com/post/crypt-compatible-cos-functionimplementation-has-anyone-seen-code