Implementing protected MBR

That article describes how to implement custom MBR protected with a password.