Changed signature generation.

Changed the signature generation as done in the backend (softgames/scotty#6).