def _get_encrypted_masterpassword(self):
if not self.unlocked():<EOL><INDENT>raise WalletLocked<EOL><DEDENT>aes = AESCipher(self.password)<EOL>return "<STR_LIT>".format(<EOL>self._derive_checksum(self.masterkey), aes.encrypt(self.masterkey)<EOL>)<EOL>
Obtain the encrypted masterkey

            .. note:: The encrypted masterkey is checksummed, so that we can
                figure out that a provided password is correct or not. The
                checksum is only 4 bytes long!