wallet::CWallet::ChangeWalletPassphrase

Change the wallet's encryption passphrase.

Synopsis

Declared in <wallet/wallet.h>

bool
ChangeWalletPassphrase(
    SecureString const& strOldWalletPassphrase,
    SecureString const& strNewWalletPassphrase);

Return Value

true if the passphrase was changed.

Parameters

NameDescription
strOldWalletPassphraseThe current passphrase.
strNewWalletPassphraseThe new passphrase to set.