Key Generation Center
RU EN ES 中文

Key Generation Center

Ludus Lab · Complex things made simple through games

How the key generation center works +

The Key Generation Center (CVK) is a simulator of cryptographic key generation based on user entropy. Unlike algorithmic generators, it uses unpredictable cursor movement to create truly random sequences.

1 Collecting entropy

The system collects three sources of entropy: the cursor's X coordinate, its Y coordinate, and the current time in milliseconds. The more chaotic the mouse movement, the higher the quality of the entropy.

2 Parity of the values

For each of the three values, the system determines whether it is odd (parity = 1) or even (parity = 0).

Examples: X=125 → odd → 1; Y=84 → even → 0; Time=1623456789 → odd → 1

3 The XOR operation

The three parity bits (X, Y, time) are added modulo 2 (the XOR operation).

XOR works as follows: the result is 1 if the number of ones (odd values) is odd.

  • 0+0+0 = 0 → even number of ones → bit = 0
  • 1+0+1 = 2 → even number of ones → bit = 0
  • 1+1+1 = 3 → odd number of ones → bit = 1
  • 1+0+0 = 1 → odd number of ones → bit = 1
4 Forming a key bit

The result of the XOR operation becomes one bit of the future cryptographic key. This operation repeats for each new cursor position at fixed time intervals.

5 Assembling the key

Bits are sequentially collected into key cells. Once enough bits have been gathered (16 in this simulation), the full cryptographic key is formed.

6 Security

A key generated this way has high cryptographic strength, since it cannot be predicted without knowing the exact cursor trajectory and the timing of each sample.

Practical use: Methods like this are used in systems that require a high degree of randomness — cryptographic protocols, session key generation, initialization vectors in encryption.

X = — → odd? ?
Y = — → odd? ?
TIME = — → odd? ?
XOR: number of odd values = 0
BIT = ?
Click "Generate key"

Master key generated successfully:

You can copy it for later use.