:relfileprefix: ../../../
[#boost-urls-url_view_base-encoded_password]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/url_view_base.adoc[pass:[url_view_base]]::encoded_password


Return the password


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_view_base.hpp#L951[boost/url/url_view_base.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:boost/urls/pct_string_view.adoc[pct_string_view]
encoded_password() const noexcept;
----

=== Description


This function returns the password portion
of the userinfo as a percent-encoded string.
[,cpp]
----
assert( url_view( "http://jane%2Ddoe:pass@example.com" ).encoded_password() == "pass" );
----

=== Constant.

=== Throws nothing.
[,cpp]
----
userinfo    = user [ ":" [ password ] ]

user        = *( unreserved / pct-encoded / sub-delims )
password    = *( unreserved / pct-encoded / sub-delims / ":" )
----

* link:https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.1[3.2.1. User Information (rfc3986)]








=== See Also


xref:boost/urls/url_view_base/has_password.adoc[has_password]
,
xref:boost/urls/url_view_base/has_userinfo.adoc[has_userinfo]
,
xref:boost/urls/url_view_base/encoded_user.adoc[encoded_user]
,
xref:boost/urls/url_view_base/encoded_userinfo.adoc[encoded_userinfo]
,
xref:boost/urls/url_view_base/password.adoc[password]
,
xref:boost/urls/url_view_base/user.adoc[user]
,
xref:boost/urls/url_view_base/userinfo.adoc[userinfo]
.



