inspircd / inspircd-contrib

Third-party InspIRCd module repository.
https://www.inspircd.org
66 stars 72 forks source link

Add m_hash_crypt module #246

Closed Elizafox closed 1 week ago

Elizafox commented 3 years ago

This is a crypt(3)-based hash module for compatibility with Unix crypt and other IRC daemons that use it. This relies on the system crypt which may unfortunately be deficient, hence there are ugly ifdef's.

At some point I plan on implementing shims for deficient systems, but this will do for now.

Note: I've tried to make this build on macOS, but it's a terrible idea to use this module there. macOS has a really bad crypt that doesn't support any modern hash functions. All it will support for now is DES, and needless to say this is not what you want most likely.

Elizafox commented 3 years ago

I deliberately broke the macOS build because their crypt really sucks and it's not worth the trouble.