Plaintext or prehashed passwords

You can store passwords in clear text or as a hash. Storing passwords as hashes is safer. Text or hash passwords are controlled by the opensipsctlrc and opensips.cfg files. The opensipsctlrc file controls the opensipsctl and osipsconsole utilities. It will store the password in plaintext in the password column if the STORE_PLAINTEXT_PW parameter is set to 1 or the HA1 value in the ha1 column is set to 0 (HA1 is a hash, the MD5 computation of user, realm, and password). The calculate_ha1 parameter defines whether MD5 will be computed on the fly or not. When set to 1, it tells the server to use the plaintext passwords from the password column and calculate HA1 on the fly. On the other hand, if set to 0, it tells ...

Get Building Telephony Systems with OpenSIPS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.