Yes, 1234 will work if you entered "1234" when prompted for the passcode. But it won't work if you entered anything else.
I never set the passcode during ios7 installation, it didn't ask!! Still 1234 works...n my device too.
I had the same problem. I tried 1111 and it worked! This is for an ipad -- never had to enter a passcode.
Retrieving data ...