Skip to content

My implementation(s) of ChessCrypt, focusing on the core S-Box generation algorithm using chess piece movements for cryptographic strength

License

Notifications You must be signed in to change notification settings

geeknik/ChessCrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

ChessCrypt

My implementation(s) of ChessCrypt, focusing on the core S-Box generation algorithm using chess piece movements for cryptographic strength.

Python

I've implemented ChessCrypt in Python with the following key features:

  1. S-Box Generation using chess piece movements:

    • Knight: Moves in L-shape pattern with cyclic wrapping
    • King: Moves one step in any direction
    • Bishop: Moves diagonally any number of steps
  2. Core functionality:

    • Configurable S-Box size (default 16x16 for 256 values)
    • Random chess piece movements with cyclic wrapping
    • Value swapping based on piece movements
    • Substitution using the generated S-Box
  3. Statistical Analysis:

    • Bijectivity checking
    • Basic statistical properties calculation
  4. Clean, typed, and documented code following Python best practices

To use ChessCrypt, you can create an instance and generate an S-Box:

crypto = ChessCrypt()
sbox = crypto.generate_sbox()
output = crypto.substitute(input_byte)

image

In memory of my dad

I've loved chess since the day my dad first introduced it to me. Unfortunately, we lost him in August, 2022 to complications from cancer. So I'm dedicating the initial release to him. \m/

Citation

Banga, A., Iqbal, N., Ikram, A. et al. ChessCrypt: enhancing wireless communication security in smart cities through dynamically generated S-Box with chess-based nonlinearity. Sci Rep 14, 28205 (2024). https://doi.org/10.1038/s41598-024-77927-0

About

My implementation(s) of ChessCrypt, focusing on the core S-Box generation algorithm using chess piece movements for cryptographic strength

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages