Hello!
Has anyone already implemented md5crypt algoritm in Nim?
There is for example implementation in PHP:
https://github.com/driehle/php-crypt-md5/blob/master/library/Md5Crypt/Md5Crypt.php
Thx for info...
Well md5 and cryptography play not well together anyway. I would probably use something else instead trying to implement this.
Related article from 2012: http://phk.freebsd.dk/sagas/md5crypt_eol.html
I know... but i have no choice. I need to communicate with api. And this api is authorized through this function. On server-side, paswords are hashed with php function:
crypt($password, '$1$'.$salt.'$'); So here we go...
Anyway, i checked C and php implementation of this crypt algorithm and it looks not so complicated, so i probably rewrite it to nim by hand.
BTW, this same algorithm is used for storing passwords in linux...