I am trying to understand two commands listed in the following link.
1. walletpassphrase
Stores the wallet decryption key in memory for <timeout> seconds.
2. walletlock
Removes the wallet encryption key from memory, locking the wallet. After calling this method, you will need to call walletpassphrase again before being able to call any methods which require the wallet to be unlocked.
So if I am clear in my understanding, to encrypt my wallet I need to call the walletlock
command and to decrypt it I need to call walletpassphrase
command. Am I correct?