[#wallet-CWallet-ChangeWalletPassphrase]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::ChangeWalletPassphrase
:relfileprefix: ../../
:mrdocs:

Change the wallet&apos;s encryption passphrase&period;

== Synopsis

Declared in `&lt;wallet&sol;wallet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
ChangeWalletPassphrase(
    xref:SecureString.adoc[SecureString] const& strOldWalletPassphrase,
    xref:SecureString.adoc[SecureString] const& strNewWalletPassphrase);
----

== Return Value

true if the passphrase was changed&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *strOldWalletPassphrase*
| The current passphrase&period;
| *strNewWalletPassphrase*
| The new passphrase to set&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
