[#wallet-CWallet-EncryptWallet] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::EncryptWallet :relfileprefix: ../../ :mrdocs: Encrypt an unencrypted wallet with the given passphrase. == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool EncryptWallet(xref:SecureString.adoc[SecureString] const& strWalletPassphrase); ---- == Return Value true if the wallet was encrypted. == Parameters [cols="1,4"] |=== | Name| Description | *strWalletPassphrase* | The passphrase to encrypt with. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#