What is chaotic encryption?

Chaotic circuits produce signals that look like noise but are completely deterministic. Two identical chaotic circuits can be made to synchronise, and that makes them a natural tool for hiding information. This page explains the idea and presents the fully digital chaotic encryption scheme developed by our group, with simulations you can run in your browser.

Hiding a message in chaos

A chaotic system is deterministic: given the same equations, parameters and starting point, it always does the same thing. Yet its output is aperiodic, has a broad, noise-like spectrum and depends extremely sensitively on its parameters and initial conditions (see What’s nonlinear electronics?). To an outside observer a chaotic signal looks random, but someone who knows exactly how it was generated can reproduce it.

In 1990 Pecora and Carroll showed that a chaotic system can be synchronised to a copy of itself by driving the copy with one of the original’s signals [3]. Cuomo and Oppenheim soon built a pair of synchronised Lorenz circuits and used them to transmit a hidden message [4]. The principle of chaotic secure communication is:

  • The transmitter mixes the message with a chaotic carrier, so that the transmitted signal looks like noise.
  • The receiver contains an identical chaotic system, which synchronises to the transmitter from the received signal and regenerates the carrier.
  • Removing the regenerated carrier recovers the message. An eavesdropper without an exact copy of the system, its key, cannot synchronise and sees only noise.

Why chaos for the Internet of Things?

IoT devices need encryption, but they have very little memory, computing power and energy. In 2018 NIST launched a competition for lightweight cryptography, won by the Ascon family [6],[7]. Those algorithms are simplified versions of conventional cryptography, but they still need hundreds or thousands of logic cells. A chaotic system can be very small, a few additions, multiplications and a comparison per clock, and it encrypts bit by bit as the data stream in.

The challenge: chaos in the digital world

Most chaotic communication systems are analogue or mixed-signal circuits. They are elegant, but two analogue circuits are never exactly identical: component tolerances, temperature and noise make it hard to match transmitter and receiver, and impossible to make thousands of identical devices. Our approach is to implement the whole scheme digitally [1]. A digital circuit can be copied exactly, its parameters are numbers that do not drift, and it fits in an FPGA, a microcontroller or a few lines of software.

The scheme is described in our paper in the IEEE Internet of Things Journal [1], which is open access, and the microcontroller code is available on GitHub. The next tab explains how it works.

A fully digital chaotic encryption scheme

The scheme [1] is built from the digital, non-autonomous chaotic oscillator presented in [2]. It has two parts with almost the same structure: an encoder-transmitter and a decoder-receiver.

Digital chaotic encrypted communication scheme Block diagram. In the transmitter, a fourth-order IIR filter produces V1 and V2. V2 is compared with a threshold V0 by a shifted Heaviside function H; the result is XORed with the message M to give the transmitted signal F, which is also fed back into the filter through the coefficients c1 and c2 with one and two clock delays. F is the only signal sent over the channel. In the receiver, an identical IIR filter is driven by F and produces V2 prime; its Heaviside output H prime is XORed with F to recover the message M prime. TRANSMITTER (encoder) c₁ z⁻¹ + c₂ z⁻²feedback of F 4th-order IIR filterα, b coefficients H(V₀ − V₂)threshold V₀ V₂ M(n) message F(n) channel: only F(n) is sent, no separate sync line RECEIVER (decoder) c₁ z⁻¹ + c₂ z⁻²driven by F identical IIR filtersame key: α, b, c H′(V₀ − V′₂)same V₀ V′₂ M′(n) = F ⊕ H′ = M Once V′₂ follows V₂, H′ = H and the XOR cancels the chaos: M ⊕ H ⊕ H = M
The scheme, redrawn after Fig. 1 of our paper: the message drives the chaotic oscillator through the XOR feedback, and the same transmitted signal F synchronises the receiver.

The transmitter

At its core is a fourth-order IIR (infinite impulse response) digital filter with two internal signals, V1 and V2. A nonlinearity, the shifted Heaviside function H(V0 − V2), equal to 1 when V2 is below the threshold V0 = 0.35 and 0 otherwise, turns V2 into a bit. That bit is XORed with the message bit M(n), and the result F(n) is both the transmitted signal and the input fed back into the filter. With one clock period TS:

V1(n) = α11V1(n−1) + α12V1(n−2) + α21V2(n−1) + α22V2(n−2) + c1F(n−1) + c2F(n−2)
V2(n) = b11V1(n−1) + b12V1(n−2) + b21V2(n−1) + b22V2(n−2)
F(n) = M(n) ⊕ H[V0 − V2(n)]

The filter on its own is stable, so the signals cannot run away to infinity; the feedback through the XOR and the Heaviside function supplies the nonlinearity and the drive that make the oscillator chaotic. Because the oscillator is non-autonomous, the message itself keeps the chaos going: the information is not added on top of the chaotic carrier, it drives it. The coefficients were obtained from a stability analysis of the filter that also set the clock period, TS = 3.2 µs (312.5 kHz) [2]. Following [2], the resulting system is a chaotic system with minimum embedding dimension 5, fractal dimension 3.4 and Kolmogorov–Sinai entropy of 0.40 bits/s.

CoefficientValueQ6.10 value (FPGA)CoefficientValueQ6.10 value (FPGA)
α110.99058820.9902343750b11−0.4800000−0.4794921875
α120.00313720.0029296875b120.16000000.1591796875
α210.48000000.4794921875b210.99058820.9902343750
α22−0.1481480−0.1474609375b220.00313720.0029296875
c11.06666661.0664062500c2−0.3555550−0.3554687500

The receiver

The receiver contains an identical IIR filter, but without its own feedback loop: it is driven by the received signal F(n) through the same coefficients c1 and c2. If its coefficients are the same as the transmitter’s, its internal signals V′1 and V′2 converge to V1 and V2, its Heaviside function reproduces the transmitter’s, and a second XOR removes it:

M′(n) = F(n) ⊕ H′[V0 − V′2(n)] = M(n) ⊕ H ⊕ H′ = M(n)   when H′ = H

No separate synchronisation signal is needed: the encrypted signal itself synchronises the receiver.

Why the receiver synchronises

Subtracting the receiver’s equations from the transmitter’s, the drive terms cancel and the errors ΔV1 = V1 − V′1 and ΔV2 = V2 − V′2 obey a linear system with the filter’s own coefficients. Its four characteristic roots all lie inside the unit circle, so any initial difference decays to zero and synchronisation is guaranteed, whatever the message:

Characteristic rootsExact coefficientsQ6.10 coefficientsMeaning
Dominant pair0.9420 ± 0.3336 j, |z| = 0.99940.9417 ± 0.3338 j, |z| = 0.9991slowly decaying oscillation with a period of about 18 clocks
Fast pair0.0485 ± 0.1462 j, |z| = 0.1540.0486 ± 0.1455 j, |z| = 0.153dies out within a few clocks

These roots, which we computed from the coefficients above, explain the shape of the synchronisation transient measured in the paper: an oscillating error, with a period of about 18 clocks, that shrinks within a few hundred clocks. You can watch the same transient in the Live link simulator.

Sending data

In the FPGA implementation each data bit is sent with pulse-width modulation: a bit lasts 16 chaotic clocks (51.2 µs) and is a pulse with a 75 % duty cycle for a 1 and 25 % for a 0. The receiver’s PWM demodulator measures the duty cycle of M′(n). The simulators on this page do the same.

Try it

These simulators implement equations (1)–(3) of the paper exactly, with the coefficients above (or your own), in the same Q6.10 fixed-point arithmetic as the FPGA (16-bit signed numbers with 10 fractional bits) or in floating point. Each one also runs an eavesdropper: a receiver whose key differs from the transmitter’s in one coefficient.

The key

Every simulator starts from the paper’s parameters (Table II), but you can change them here: edit any coefficient or the threshold V0 and press Apply (or Enter). Transmitter and legitimate receiver always share the key; the eavesdropper’s error is applied on top of it. Changed values are outlined, and the tiles give a quick check of the new key: whether the oscillator stays bounded, whether the receiver still locks on, and how often F equals the message. Not every key works: because transmitter and receiver are driven by the same F, the receiver’s error obeys the linear recursion e(n) = A·e(n−1), so the receiver only synchronises if the spectral radius of the filter matrix A is below 1. The paper’s key sits just inside (0.9995), which is why locking on takes a few hundred clocks. The PWM clock selector sets how many chaotic clocks each PWM bit lasts: every message bit is sent as the four PWM bits 1110 (for 1) or 1000 (for 0), so a message bit takes 64, 16 (the paper’s FPGA) or 4 chaotic clocks. Before the data, every simulator sends a lock-in preamble of alternating 1s and 0s whose length you can choose; the paper does not specify one, so the default of 1,024 chaotic clocks is our choice. Test values loads an alternative key, found with the search below, together with PWM_CLK = CH_CLK and a 16,384-clock preamble; Paper values restores the paper’s key, PWM clock and the default preamble. Run random until F equals M is within ±x % of 50 % tries random keys around the paper’s (coefficients within the chosen spread, and V0 within the chosen absolute range around 0.35, since the bias of F depends mainly on where the threshold sits) and stops at the first one whose receiver synchronises without errors and whose transmitted signal F agrees with the message 50 % of the time within the chosen tolerance. Values far from 50 % in either direction leak the message: an attacker who sees F = M only 40 % of the time simply inverts F and is right 60 % of the time.

Encrypt text

In the paper, two Arduino boards exchanged the first paragraph of Don Quixote. Here the text is converted to bits (UTF-8), sent with the PWM scheme after a short preamble that lets the receiver lock on, and decoded by both receivers. Then try the eavesdropper with an error in c1 or c2 instead of α11.

Encrypt an image

The FPGA demonstration sent a black-and-white QR code through the 16,384-bit block RAM of the Spartan-3E. Here a 64 × 64 black-and-white picture (4,096 bits) is encrypted, transmitted and decoded. Switch to JPEG file to send a compressed file instead: the picture is encoded as a real JPEG, its bytes are sent bit by bit through the chaotic link, and each receiver tries to open what it got as a JPEG. You can also load your own image (a JPEG of up to 24 kB can be sent unchanged); it is processed only in your browser.

Compression changes the picture of security. In a bitmap, neighbouring pixels are alike, so a receiver that gets 70 % of the bits right still shows a recognisable picture; a JPEG is compact, high-entropy data in which a few wrong bits already make the file unreadable or garble it. The legitimate receiver must therefore be error-free (look at the Received bytes wrong tile, and try PWM_CLK = CH_CLK with a short preamble), while the eavesdropper’s file normally cannot even be opened.

Security and performance

The key

The secret shared by transmitter and receiver is the system itself: the filter coefficients (the paper discusses the a, b and c constants) and the initial conditions. A brute-force attack must find five parameters and four initial conditions; with N = 10 bits each that is a search space of (210)9 = 290 possibilities [1]. Smarter attacks search for the parameters that minimise the Hamming distance between the eavesdropper’s output and the transmitted signal [8], but they must still explore a nine-dimensional space with many local minima.

Key sensitivity

How precisely must the receiver know the key? The simulator below sends 300 random bits for a range of errors in one coefficient of the receiver and measures the bit-error rate. For α11, as in the paper’s Fig. 13, a +1 % mismatch already scrambles the output; try other coefficients and signs to see how the sensitivity varies from one key parameter to another.

In Q6.10 arithmetic every coefficient is rounded to a multiple of 1/1024, so changes smaller than that step may round to the same value and have no effect; the effective precision of the key is set by the word length.

Hardware cost

On a Xilinx Spartan-3E (XC3S500E) the transmitter uses a tiny fraction of the device [1]:

ResourceUsedAvailableUtilisation
Slices294,6560.62 %
Slice flip-flops19,3120.01 %
4-input LUTs569,3120.60 %
Bonded IOBs3523215.08 %
MULT18×1852025.00 %
Global clocks1244.16 %

For comparison, FPGA implementations of the NIST lightweight-cryptography finalists need far more logic. These figures, reported for a Xilinx Artix-7, can only be compared qualitatively with our Spartan-3E result [1]:

ImplementationLUTsFlip-flopsSlices
Our scheme (Spartan-3E)56129
ASCON_GMU-v21,790974513
Elephant-v52,6451,502759
GIFT-COFB_GMU-v62,363872696
PHOTON-Beetle-v12,065729620
Romulus-v5887422246
TinyJAMBU-TJT-v3576432215
Xoodyak_XT-v82,443559618

Software cost

On an ESP32 microcontroller, a non-optimised implementation needs less memory and less time per encrypted byte than the NIST lightweight finalists, as evaluated by NIST [1],[6]:

AlgorithmMemory (kB)Time per byte (µs)
Our scheme29.55.39
AES-GCM33.967.75
ASCON32.222.86
Elephant33.73986.3
GIFT-COFB33.655.61
GRAIN-128AED33.0119.72
ISAP32.6608.46
PHOTON-Beetle33.4185.76
Romulus33.5114.16
SPARKLE32.562.2
TinyJAMBU32.343.59
Xoodyak32.639.18

Side channels

The time needed to encrypt or decrypt does not depend on the key or the message, so timing attacks do not apply. Power analysis is also difficult, because the message interacts with the chaotic signal one bit at a time in a single XOR gate. Experimental side-channel testing is still pending.

Open questions

Chaos-based cryptography is a young field, and several proposed schemes have been broken; Alvarez and Li list the requirements such systems must meet [5]. Our future work includes testing the scheme under noisy conditions, a formal evaluation of its encryption strength, combining it with a physical unclonable function to derive the key (see What are PUFs?), and integrating it into a wireless platform. A further countermeasure against brute-force attacks would be to change the parameters dynamically, driven by another chaotic system, after a given amount of information has been transmitted.

Our work on chaotic communications

  • A digital non-autonomous chaotic oscillator for information transmission [2].
  • The digital chaotic encrypted communication scheme on FPGA, Arduino and ESP32 [1].
  • Real-world encrypted communication with synchronised chaotic circuits without a dedicated synchronisation line, and with synchronised Lorenz circuits [9],[10].
  • Secure communication for unmanned aerial vehicles based on chaotic communication architectures [11],[12].
  • Stochastic computing implementations of chaotic systems [13].

References

[1] N. F. Karagiorgos, S. G. Stavrinides, C. de Benito, S. Nikolaidis and R. Picos, “Unconventional security for IoT: hardware and software implementation of a digital chaotic encrypted communication scheme,” IEEE Internet of Things Journal, vol. 11, no. 11, pp. 19914–19925, 2024. doi:10.1109/JIOT.2024.3371091 (open access).

[2] S. G. Stavrinides, N. Karagiorgos, K. Papathanasiou, S. Nikolaidis and A. Anagnostopoulos, “A digital nonautonomous chaotic oscillator suitable for information transmission,” IEEE Transactions on Circuits and Systems II: Express Briefs, vol. 60, no. 12, pp. 887–891, 2013.

[3] L. M. Pecora and T. L. Carroll, “Synchronization in chaotic systems,” Physical Review Letters, vol. 64, no. 8, pp. 821–824, 1990.

[4] K. M. Cuomo and A. V. Oppenheim, “Circuit implementation of synchronized chaos with applications to communications,” Physical Review Letters, vol. 71, no. 1, pp. 65–68, 1993.

[5] G. Alvarez and S. Li, “Some basic cryptographic requirements for chaos-based cryptosystems,” International Journal of Bifurcation and Chaos, vol. 16, no. 8, pp. 2129–2151, 2006.

[6] M. S. Turan et al., “Status report on the final round of the NIST lightweight cryptography standardization process,” National Institute of Standards and Technology, NIST IR 8454, 2023.

[7] C. Dobraunig, M. Eichlseder, F. Mendel and M. Schläffer, “Ascon v1.2: lightweight authenticated encryption and hashing,” Journal of Cryptology, vol. 34, art. 33, 2021.

[8] M. Zanin, J. Sevilla-Escoboza, R. Jaimes-Reátegui, J. García-López, G. Huerta-Cuellar and A. N. Pisarchik, “Synchronization attack to chaotic communication systems,” Discontinuity, Nonlinearity, and Complexity, vol. 2, no. 4, pp. 333–343, 2013.

[9] N. A. Anagnostopoulos, A. E. George, N. Mexis, T. Arul, S. Katzenbeisser, R. Picos and S. G. Stavrinides, “The synchronisation is the message: real-world encrypted communication based on synchronised chaotic circuits without using a dedicated synchronisation line,” in 13th International Conference on Modern Circuits and Systems Technologies (MOCAST), 2024, pp. 1–6.

[10] A. E. George, E. Gelóczi, N. Mexis, T. Arul, S. Katzenbeisser, S. G. Stavrinides et al., “Real-world secure communication based on synchronised Lorenz chaotic circuits,” in 13th International Conference on Modern Circuits and Systems Technologies (MOCAST), 2024.

[11] N. Souli, S. G. Stavrinides, P. Kardaras, R. Picos, M. Karatzia, P. Kolios et al., “Performance evaluation of a prototype UAV-based secure communication system employing ROS and chaotic communications,” in International Conference on Unmanned Aircraft Systems (ICUAS), 2024, pp. 1034–1041.

[12] N. Souli, S. G. Stavrinides, R. Picos, M. Karatzia, P. Kolios and G. Ellinas, “Development of a lightweight secure communication system for UAVs enhanced by an unconventional chaotic communication architecture,” Journal of Intelligent & Robotic Systems, vol. 111, no. 3, art. 85, 2025.

[13] O. Camps, S. G. Stavrinides and R. Picos, “Stochastic computing implementation of chaotic systems,” Mathematics, vol. 9, no. 4, art. 375, 2021.

Code and related pages