I am trying to understand two commands listed in the following link.
Stores the wallet decryption key in memory for <timeout> seconds.
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
walletlockcommand and to decrypt it I need to call
walletpassphrase command. Am I correct?