Store a message in a deck of cards!

There are 52! unique ways to put 52 playing cards in order. By establishing a mathematical correspondence between an order of letters and the order of cards, we can hide a message in the deck of cards by simply putting them in the correct order. Read a full explanation, play with the decoding demo, or the encoding demo below.

I used the free javascript BigInt library to do large-number calculations.

Comments welcome at

Allowed characters: a-z, " " (space), and "." (period) up to 46 characters long (47-char messages also fit if they start with a letter lower than "t")
Numeric value:
Decoded message: