### Method

# GLib Uri get_password

since: 2.66

#### Declaration [src]

    const gchar*
    g_uri_get_password (
      GUri* uri
    )

#### Description [src]

Gets `uri`‘s password, which may contain `%`-encoding, depending on the flags with which `uri` was created. (If `uri` was not created with `G_URI_FLAGS_HAS_PASSWORD` then this will be `NULL`.).

Available since: 2.66

#### Return value

Type: `const gchar*`

`uri`‘s password.

The returned data is owned by the instance.
The return value can be `NULL`.
The value is a NUL terminated UTF-8 string.