On 18.09.2018 19:33, Gilles Chehade wrote:
On Tue, Sep 18, 2018 at 10:06:49AM +0300, Reio Remma wrote:
Hello!

I'm curious as to what determines the password scheme used by OpenSMTPD on a
Linux system (CentOS 7 in my case).

that's an easy one:

OpenSMTPD uses the crypt() function provided by your system and does not
care about the password scheme used as this is a system-specific detail.

On modern systems the crypt() function encodes the algorithm, rounds and
salt as a prefix to the encrypted password, as shown below:

      $2b$09$fEv/zNZ/5hELpDH3Vq93AuygRLnySIcNXH78rq9WxPPbZJxmcdk5m
      |  |  |                |
      |  |  |                |__ encrypted password
      |  |  |__ begining of salt
      |  |__ beginning of rounds
      |__ beginning of cipher


But this encoding is only valid for my operating system, yours will have
a different one and the only thing you need to care about is if password
was generated using the same crypt() function that will be used validate
it.

I suggest your read the crypt(3) and passwd(1) man pages of your system.

Thanks for your reply. :)

I was just reading up whilst my son was in his football practice and I'm about to see if I can add a few hundred thousand more rounds to the SHA512 that CentOS is using.

Thanks,
Reio

--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to