[#boost-urls-authority_view-encoded_password] = xref:boost/urls/authority_view/encoded_password.adoc[boost::urls::authority_view::encoded_password] :relfileprefix: ../../../ :mrdocs: Return the password == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/authority_view.hpp#L662[boost/url/authority_view.hpp]>` [source,cpp,subs="verbatim,replacements,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. == Example [,cpp] ---- assert( url_view( "http://jane%2Ddoe:pass@example.com" ).encoded_password() == "pass" ); ---- == Complexity Constant. == Exception Safety Throws nothing. == BNF [,cpp] ---- userinfo = user [ ":" [ password ] ] user = *( unreserved / pct-encoded / sub-delims ) password = *( unreserved / pct-encoded / sub-delims / ":" ) ---- == Specification * https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.1[] == Return Value The password == See Also xref:boost/urls/authority_view/has_password.adoc[`has_password`], xref:boost/urls/authority_view/has_userinfo.adoc[`has_userinfo`], xref:boost/urls/authority_view/encoded_user.adoc[`encoded_user`], xref:boost/urls/authority_view/encoded_userinfo.adoc[`encoded_userinfo`], xref:boost/urls/authority_view/password.adoc[`password`], xref:boost/urls/authority_view/user.adoc[`user`], xref:boost/urls/authority_view/userinfo.adoc[`userinfo`]. [.small]#Created with https://www.mrdocs.com[MrDocs]#