which authentication encryption type is recommanded?

32 Views Asked by At

from the dev document, i got that opengauss support several encryption type for cleint authentication:

  • md5
  • sha256 (as default)

local is a Unix domain socket. host is a common or SSL-encrypted TCP/IP socket. hostssl is an SSL-encrypted TCP/IP socket. hostnossl is a TCP/IP-only socket. authmehod-options is an optional parameter. Value range:

As i know that md5 is not safe enough? so why opengauss still support it, which authentication encryption type is recommanded ?

2

There are 2 best solutions below

0
eve On

Use MD5 only for compatibility with legacy applications and data. Sha256 is recommanded.

0
Eric Xu On

for your question, i guess openGauss have to sovle compatibility issue. that is there are many old version deploying in customer's env, they may use the md5 encryption type.
so that openGauss can not delete the type directly.

then use sha256 authentication encryption as default for secure; use md5 for compatibility, but better make sure use it in trusted network.