The "password_hash" Module

Description

This module adds the /MKPASSWD command which allows the generation of hashed passwords for use in the server configuration.

Configuration

To load this module use the following <module> tag:

<module name="m_password_hash.so">

This module requires no other configuration.

Commands

Name Parameter Count Syntax Description
MKPASSWD 2 <hash> <password> Hashes <password> using the <hash> algorithm.

The following hashing modules are included with InspIRCd:

Algorithm Module Description
hmac-md5 md5 Hashes using the MD5 and HMAC algorithms.
hmac-ripemd160 ripemd160 Deprecated! Hashes using the RIPEMD-160 and HMAC algorithms.
hmac-sha256 sha256 Hashes using the SHA-256 and HMAC algorithms.
md5 md5 Hashes using the MD5 algorithm.
ripemd160 ripemd160 Deprecated! Hashes using the RIPEMD-160 algorithm.
sha256 sha256 Hashes using the SHA-256 algorithm.

Example Usage

Hashes the password "hunter2" using the HMAC-SHA-256 algorithm:

/MKPASSWD hmac-sha256 hunter2

Special Notes

You should only run this command on a server that you trust as the plaintext password may be intercepted by an attacker.