Originally Posted by bruce142
Yes, GoodDayToDie is right, he's always right , didn't you know rule #1 of the Windows Phone Development and Hacking subforum, no questions allowed, if you had checked the "Is this a question" box, you normally had received a message that it's a violation of the XDA-Developers forum rules to post questions in the Development section. Move your question to the Q&A section (use the report button on the first post and select thread/post moving or maintenance and request for the thread to be moved to the Q&A section) and it will be answered surely.
Just for information:
Nokia unlock codes are calculated with a secret algo that resides inside a smartcard named SX-5 from IMEI and a provider specific configuration key.
These codes aren't stored in phones but a SHA hash instead, which can't be altered since it's RSA signed.
Every time a not factory unlocked phone starts the user entered and stored unlock code is hashed and this hash is compared with the stored one.
So there is no algo in phone. And brute-forcing 20 digit codes (SHA hashing) costs you much more money for energy and calculation time than a brand new factory unlocked phone would cost you.