How to encode and decode polariums puzzle passwords without polarium.

This password will be the example for the rest of this post.
5880477582
5880477582
3599954982

A polarium password consistes of three lines that have ten decimal digits. The first two lines are the puzzles board data and the last line is other info.

The first step to decode the password is to flip every letter of each line.
So that this:
5880477582
5880477582
3599954982

becomes this:
2857740885
2857740885
2894599953

The next step is to convert this into binnary and hexdecimal numbers. make sure that it takes exactly 32 bits
So that this:
2857740885
2857740885
2894599953

becomes this:
10101010010101011010101001010101
10101010010101011010101001010101
10101100100010000001011100010001

and this (for later use):
AA55AA55
AA55AA55
AC881711

The first and second lines are the binnary represintation of the black and white tiles.
The first line is the top and the second line is the bottom.
0 means a white tile and 1 means a black tile.
Also the tiles scan backwards, which means that the far right digit is the top left tile.

So to decode this, take the first line.
10101010010101011010101001010101
Reverse it
10101010010101011010101001010101 (There is no difference with this puzzle, but this is a important step)
and divide it into groups of 8 bits.
10101010
01010101
10101010
01010101

Do the same thing with the bottom line.

Now you have the board's info.
10101010
01010101
10101010
01010101
10101010
01010101
10101010
01010101

If the size of the board is less than 8x8, then the rest of the board is filled with the default checkered pattern.

The third line has all the other info about the puzzle like: size, hints, and the checksum.(use the hexdecimal for this line.)

AC,88,17,11
The first byte is the checksum. It is caculated by adding all of the other bytes of the password.

Example:
AA55AA55
AA55AA55
??881711
To find out the checksum you have to add all the other bytes (you have to use hexdecimal adding to make it work).
AA+55+AA+55+AA+55+AA+55+88+17+11= 4AC.
You only need the last two digits (which is "AC").

AC,88,17,11
The second byte is the size of the board without the border. The first digit is the size vertically and the second digit it the size horizontally.

AC,88,17,11
The third and forth bytes are the cordinants of the start and end of the solution.

The horizontal and vertical of the cordinants is a number between 0 and 9.

To encode a puzzle you just do the opposite of decoding.

Originaly posted in nsider fourms May 26, 2005 at 4:13PM EST, most of the info is from http://www.zsivanys.nl/password2puzzle.txt