Build AuthInfo
for OAuth
.
Encrypt the password with MD5 as default.
Try to extract the encryption password from given password. The password is always stored
encrypted in the system catalogs. The ENCRYPTED keyword has no effect, but is accepted for
backwards compatibility. The method of encryption is by default SHA-256-encrypted. If the
presented password string is already in MD5-encrypted or SHA-256-encrypted format, then it is
stored as-is regardless of password_encryption
(since the system cannot decrypt the specified
encrypted password string, to encrypt it in a different format).
Encrypted raw password from auth info.
Encrypt โpassword
+name
โ with MD5.
Encrypt the stored password with given salt, used for user authentication.
Encrypt โpassword
+name
โ with SHA-256.