Skip to content

DikshaKhatwani41/chessboardencrypter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

chessboardencrypter

Encrypted chessboard encoded with Go Programming Language

Languages used:

Go, HTML, CSS

Database:

Go's in-built Database

Description/ Demonstration

Are you a spy that needs to leave an urgent top secret message for an incoming foreign diplomat but the only thing in the consulate’s parlor is a chessboard? Chesscode has you covered. Chesscode is a way of encoding messages using a chess board and the starting set of chess pieces. The message can be up to 23 alphanumeric characters also allowing spaces and periods.

demo

Encoding

Since the set of possible pieces is fixed as a subset of the starting position, this infinitely limits the theoretical possibilities of 13^64 configurations. Another issue is piece distribution, there is one white king and eight white pawns for example. Because of these constraints, pieces signify the order of data and squares hold the data itself.

Piece Order

  • White King
  • Black King
  • White Queen
  • Black Queen
  • White Rooks
  • Black Rooks
  • White Bishops
  • Black Bishops
  • White Knights
  • Black Knights
  • White Pawns
  • Black Pawns
This pattern is easiest to see with the white king. The first example with the king in the A1 square encodes 0, while the king in the C2 encodes A. The square simply indexes a character in the charset. This gets us one character.

Charset (space at end): 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ

Decoding

Decoding simply reverses the encoding process, but there is a few caveats:

  • Not every board with the starting pieces can be decoded
  • It is ambiguous if the message intended to leave white space at the end of the message

About

Encrypted chess board with hard to crack decoder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published