PBKDF2 PIN

The pin is not stored in clear text in the shared preferences file.  The pin is subjected to a "password based key derivation function" and the resultant hash is stored in the preferences file.