If you cannot access the project files and need to unlock the HMI for a new project, you can factory reset it. Power off the HMI.
One clever security technique is to implement passwords that change every minute, significantly reducing the risk of a static password being observed and reused. The following script example from an MCGS project illustrates this: mcgs hmi password