wallet::CWallet::EncryptWallet

Encrypt an unencrypted wallet with the given passphrase.

Synopsis

Declared in <wallet/wallet.h>

bool
EncryptWallet(SecureString const& strWalletPassphrase);

Return Value

true if the wallet was encrypted.

Parameters

NameDescription
strWalletPassphraseThe passphrase to encrypt with.