With their iOS devices, Apple allows people to block certain applications through "Restrictions". I recently had an issue with my iPhone where I'm positive that I entered the correct passcode on my new phone, but the device refused to give me access. Searching around online shows LOTS of other people claiming the same thing.

I'm wondering if it's actually a bug, or whether we're all just forgetful.

The passcodes are stored in an XML file. Mine was this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">

Through editing the file and making changes, I can confirm that the following

Key: IxxWEBikzuZi33zUqCBnAcWAavk=
Salt: aSbUXg==

Equals passcode: 1234

Given that each passcode is only four digits, how can I decrypt my initial passcode to see if it really was what I remember it being, or if I had misentered it the first time around.

1 Answer 1


I can confirm that they use pbkdf2-hmac-sha1. You can read how to decrypt the codes here:


Turns out I'd misremembered my passcode after all!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .