[Paper Review] One-Time Pad, Arithmetic Coding and Logic Gates: An unifying theme using Dynamical Systems
This paper proposes a unified dynamical systems framework that connects one-time pad encryption, arithmetic coding, and logic gate computation via Generalized Lur"oth Series (GLS) maps. By interpreting encryption and compression as finding initial conditions under random switching between GLS modes, the authors show that OTP is a special case of randomized arithmetic coding on the binary map, and extend this to implement all standard logic gates using dynamical system switching.
In this letter, we prove that the perfectly secure One-Time Pad (OTP) encryption can be seen as finding the initial condition on the binary map under a random switch based on the perfectly random pad. This turns out to be a special case of Grangetto's randomized arithmetic coding performed on the Binary Map. Furthermore, we derive the set of possible perfect secrecy systems using such an approach. Since OTP encryption is an XOR operation, we thus have a dynamical systems implementation of the XOR gate. We show similar implementations for other gates such as NOR, NAND, OR, XNOR, AND and NOT. The dynamical systems framework unifies the three areas to which Shannon made foundational contributions: lossless compression (Source Coding), perfect encryption (Cryptography), and design of logic gates (Computation)
Motivation & Objective
- To unify three foundational areas of Shannon's work—cryptography, source coding, and computation—under a single dynamical systems framework.
- To demonstrate that one-time pad encryption is equivalent to randomized arithmetic coding on the binary map with random switching between dual modes.
- To generalize perfect secrecy systems beyond binary OTP to non-binary alphabets using multi-symbol GLS maps.
- To show that logic gates (XOR, AND, OR, etc.) can be implemented as initial condition recovery in switching dynamical systems.
- To establish a framework where data compression, encryption, and computation emerge from the same underlying dynamical process.
Proposed method
- Model the binary map and its skewed variants as piecewise linear, Lebesgue measure-preserving, chaotic dynamical systems with symbolic dynamics.
- Interpret arithmetic coding as backward iteration to recover the initial condition of a GLS map based on a message’s symbolic sequence.
- Implement randomized arithmetic coding by stochastically switching between dual GLS modes (e.g., binary map and its dual) at each step based on a private key stream.
- Show that when the binary map is used (p = 0.5), this switching process reduces to one-time pad encryption, where the key stream determines the mode at each step.
- Generalize the framework to n-ary alphabets by using n-mode GLS maps and switching based on a key stream over the same alphabet.
- Implement logic gates by selecting specific GLS mode switching sequences that reproduce the truth table of the target gate, with the initial condition encoding the output.
Experimental results
Research questions
- RQ1Can one-time pad encryption be interpreted as a dynamical systems process involving initial condition recovery under random switching?
- RQ2How does randomized arithmetic coding relate to perfect secrecy, and under what conditions does it reduce to OTP?
- RQ3What are the complete set of dynamical systems-based perfect secrecy systems equivalent to OTP?
- RQ4Can logic gates such as XOR, AND, OR, NAND, NOR, and NOT be implemented using switching between GLS modes?
- RQ5Can this framework be generalized to non-binary alphabets while preserving perfect secrecy and logical functionality?
Key findings
- One-time pad encryption is a special case of Grangetto’s randomized arithmetic coding when applied to the symmetric binary map (p = 0.5), where switching between dual modes corresponds to key stream application.
- There are 16 distinct perfect secrecy systems equivalent to OTP, formed by independently choosing one of four modes for each key bit (0 or 1), all based on switching between dual GLS maps.
- For non-binary alphabets, the framework generalizes to n-OTP by using n-mode GLS maps and switching based on a key stream over an n-ary alphabet, with encryption equivalent to modular addition.
- All standard logic gates (XOR, XNOR, AND, OR, NAND, NOR, NOT) can be implemented as initial condition recovery in a switching dynamical system, where the switching sequence encodes the gate’s truth table.
- The dynamical system framework allows for streaming input and output: messages and logic results are stored as real numbers (initial conditions), enabling accumulation and batch processing.
- The method provides a unified mechanism where lossless compression, perfect encryption, and logic computation all emerge from the same core process: recovering an initial condition under controlled switching of dynamical systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.