Does changing a PIN decrypt and encrypt everything again? From this answer and comments on it, a PIN is used to encrypt the phone and it must be used to decrypt it. So what happens when a PIN is changed or even removed?


Does changing the PIN necessarily decrypt the entire phone and encrypt again?
If not, does the phone need to remember every PIN ever used?
If a PIN is removed and the Slide to Unlock security measure is used, does the phone become decrypted? Or does it remain encrypted with the old PIN?
A phone is encrypted with a randomly generated dedicated key, then the key is encrypted with PIN and stored somewhere else.

When you replace the PIN, it's the key that gets decrypted and encrypted again. When you remove the PIN, the key is decrypted.

It's a bad practice to encrypt the device with an easily-changeable PIN because encryption takes time, and comsumes power.