Prince of Persia Forum Index
Prince of Persia Forum
FAQ  FAQ   Search  Search   Memberlist  Memberlist   Ranking  Ranking   Usergroups  Usergroups   RSS
Register  ::  Log in Log in to check your private messages

Post new topic  Reply to topic 4 posts
 PoP1 SNES password maker? « View previous topic :: G M Y :: View next topic » 
Author Message
david
PostPosted: Wed Mar 14, 2007 7:44 pm    Post subject: PoP1 SNES password maker? Reply with quote

Developer
Developer

Age: 16 Aries
Joined: 09 Aug 2006
Status: Offline
Posts: 308
Location: Hungary

Does anyone know about a PoP1 SNES password maker, or know how information is stored?
For PoP2 it was said here: http://www.popuw.com/forum/viewtopic.php?t=730

What I currently know:

The alphabet used is the following: BTL3GY7Q9CVM4HZ8R+DWN5J12S!FXP6K
So for example this password: 9BQ5LN4
Means this: 01000 00000 00111 10101 00010 10100 01100
The 2nd bits of the 1st-5th sections store the level number, minus 1 (00001 in this case),
the 3rd bits of the 1st-4th sections store the number of hit points (0011 in this case),
and some other bits store the elapsed time (00001 in this case, but there should be other bits).

Do you know what do the other bits mean?
_________________
My levels | All command-line parameters
Password generators: SMS, SNES | My SNES maps | PR1.2 unofficial fix
Back to top
View user's profile Send private message Visit poster's website  
Gorthol
PostPosted: Thu Mar 15, 2007 12:08 am    Post subject: Reply with quote

Citizen
Citizen

 
Joined: 26 Sep 2006
Status: Offline
Posts: 33

It's probably a checksum. That is, the other bits are some sort of sum of the existing bits so that the program can verify that it's a real password. Like the last digit on a credit card.

Of course, to figure out how to fake the checksum, you'll need to generate a lot of passwords.
Back to top
View user's profile Send private message  
david
PostPosted: Mon Apr 02, 2007 6:49 pm    Post subject: Reply with quote

Developer
Developer

Age: 16 Aries
Joined: 09 Aug 2006
Status: Offline
Posts: 308
Location: Hungary

Some new results:
the bits are made up in the following way:
0 l0 h3 t0 t7
c1 l1 h2 t1 t6
c2 l2 h1 t2 t5
c3 l3 h0 t3 t4
c4 l4 0 t8 t9
c5 t10 t11 t12 t13
c6 c7 c8 t14 t15
where:
l4 l3 l2 l1 l0 are the bits of the level number
h3 h2 h1 h0 are the bits of the number of hit points
t15 t14 t13 t12 t11 t10 t9 t8 t7 t6 t5 t4 t3 t2 t1 t0 are the bits of the elapsed time
c1 c2 c3 c4 c5 c6 c7 c8 are the checksum bits:
c1=l1^l4^h0^h1^t0^t1^t2^t5^t7^t8^t10^t13^t15^1
c2=l1^l2^l3^h0^h2^h3^t1^t4^t5^t8^t9^t10^t12^t14^t15
c3=l0^l1^l3^h2^t2^t3^t5^t6^t7^t8^t9^t11^t14
c4=t4^t5^t6^t7^t9^t13^t15
_________________
My levels | All command-line parameters
Password generators: SMS, SNES | My SNES maps | PR1.2 unofficial fix
Back to top
View user's profile Send private message Visit poster's website  
david
PostPosted: Thu Apr 05, 2007 6:37 pm    Post subject: Reply with quote

Developer
Developer

Age: 16 Aries
Joined: 09 Aug 2006
Status: Offline
Posts: 308
Location: Hungary

I've found the method for c5:
c5=t0^t1^t2^t3^t8^t12^t14^(((t4+t5+t6+t7+t9+t13+t15)>>1)&1)

EDIT:
I've made a password analyzer/creator, you can use it here: http://www.freeweb.hu/princepersia/en/snes_pwd_anal.htm
Because methods are unknown for three of the checksum bits, if you want to create passwords, you'll get eight of them, and you have to try each of them.
_________________
My levels | All command-line parameters
Password generators: SMS, SNES | My SNES maps | PR1.2 unofficial fix
Back to top
View user's profile Send private message Visit poster's website  
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2002 - 2007 Jalal Noureddine, Prince of Persia Unofficial Website
Page generated in 0.39456 seconds | 12 queries executed | GZIP compression enabled