When an encrypted file is already open, Save prompts for the password/keyfile again, but it never checks those credentials against the file before overwriting it. The save path just uses whatever the user typed to encrypt the current text again. That means a typo, wrong keyfile, or different strong password can permanently re-key the note without warning. This is in platform/win32/notepad.cpp (line 1013) and platform/linux/main.cpp (line 394).
When an encrypted file is already open, Save prompts for the password/keyfile again, but it never checks those credentials against the file before overwriting it. The save path just uses whatever the user typed to encrypt the current text again. That means a typo, wrong keyfile, or different strong password can permanently re-key the note without warning. This is in platform/win32/notepad.cpp (line 1013) and platform/linux/main.cpp (line 394).