It is clear that when a LUKS disk is mounted and the password/key has been provided, the contents are decrypted. I am wondering if unmounting the disk is sufficient to encrypt the contents again, or if the disk needs to be unmounted and powered off/unplugged for this to happen. Further, would the host computer need to be powered off to purge the key from memory?
I can’t think of any reason a simple unmount wouldn’t work, but I’m not able to find a clear answer. Much of the available literature deals with LUKS encrypted internal drives, where the obvious answer is to turn the computer off to render the contents encrypted again. However, this would unmount the disk, power it off, and power off the host computer, so I’m wondering which of those three steps is the point at which the contents is again encrypted.