The default code for factory reset is 12345. This is the standard security code you need to use to factory reset the phone. Unfortunately, if you've forgotten the password, the only way to retrieve it is with the help of the 3rd party hardware box that has the capability of accessing the memory of the phone. You can either visit Nokia Store or a local phone service shop. They will help you to get the code or perform the factory reset.