Member-only story

Building a Quantum-Secure Network Using Penrose Tiling and Kyber Encryption

Robert McMenemy
9 min readJun 12, 2024

--

Introduction

As the field of cryptography advances, the need for post-quantum security becomes ever more pressing. Quantum computers, with their immense computational power, threaten to break many of the cryptographic systems we rely on today. In response, new cryptographic algorithms, such as those based on lattice problems, are being developed to ensure security in a post-quantum world.

In this blog post, we’ll walk through a Python project I built that uses Penrose tiling for seed generation and the Kyber algorithm for post-quantum secure key encapsulation.

Step 1: Setting Up the Environment

First, let’s ensure we have all necessary libraries installed. These include NumPy, SciPy, PyCryptodome, Cryptography, Zeroconf, Nest Asyncio, and Pyngrok. We can install these libraries using pip:

pip install numpy scipy pycryptodome cryptography zeroconf nest_asyncio pyngrok

Step 2: Importing Required Modules

We’ll start by importing the required modules and applying nest_asyncio to allow nested event loops.

import nest_asyncio
nest_asyncio.apply()

import hashlib
import hmac
from Crypto.Cipher…

--

--

Robert McMenemy
Robert McMenemy

Written by Robert McMenemy

Full stack developer with a penchant for cryptography.

No responses yet