PASSWORD()

Overview

Returns an encrypted string from a plaintext password.

USAGE

PASSWORD(string)

Argument Name

Description

string

The string to encrypt

DETAILS

PASSWORD() is an encryption function that returns an encrypted string from a password string.

By default, the return value is an encrypted hash that is 41-bytes in length and has a first character that is '*'. An authentication plugin can be used to generate other hash values.

The return value is an empty string when the argument is NULL.

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT PASSWORD('MariaDB42!');
+-------------------------------------------+
| PASSWORD('MariaDB42!')                    |
+-------------------------------------------+
| *07A469684341365CDFBADCAEF5FCD6B57F881A9A |
+-------------------------------------------+

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES