Intentar ORO - Gratis

SageMath: Deeper Insights into Cybersecurity

Open Source For You

|

March 2025

In the previous article in this SageMath series (published in the January 2025 issue of OSFY), we concluded our discussion of classical encryption techniques and moved on to the exploration of modern cryptography by looking at symmetric-key cryptography. In this ninth article in the series, we will continue the focus on symmetric-key cryptography.

- Dr Deepu Benson

SageMath: Deeper Insights into Cybersecurity

In the last article, we wrote a SageMath program to implement a simple symmetric-key cryptographic algorithm called DES using a Python package called ‘PyCryptodome’. As promised, we will discuss the implementation of DES briefly in this article.

Most cryptography textbooks covering DES introduce a simplified version called the Simplified Data Encryption Standard (S-DES) to explain its working. S-DES follows the same fundamental principles as DES but operates on a smaller scale. It is a block cipher that encrypts 8-bit plaintext blocks using a 10-bit key, which is processed to generate two 8-bit subkeys for encryption and decryption. For a detailed analysis of S-DES, I recommend the classic textbook ‘Cryptography and Network Security: Principles and Practice’ by William Stallings. Let’s first explore the concept of block ciphers before examining how DES functions as one.

Block ciphers

A block cipher is an encryption method that processes data in fixed-size blocks, transforming plaintext into ciphertext using a secret key. A block cipher encrypts a block of N bits at a time (for example, DES uses 64-bit blocks). Each block is encrypted independently but may be linked to other blocks depending on the mode in which the block cipher operates.

In addition to DES, other examples of block ciphers include AES (Advanced Encryption Standard), which operates on a 128-bit block of data with key sizes of 128, 192, or 256 bits; Blowfish, which operates on a 64-bit block of data with a variable-length key ranging from 32 to 448 bits; and Twofish, which operates on a 128-bit block of data with key sizes up to 256 bits.

MÁS HISTORIAS DE Open Source For You

Open Source For You

Open Source For You

The Fragile Edge: Chaos Engineering for Reliable IoT

Chaos engineering is a great way of detecting possible failures in loT devices. This technology has evolved well for testing cloud failure, but open source communities are still working towards building an efficient chaos engineering toolkit for testing loT devices.

time to read

9 mins

November 2025

Open Source For You

Open Source For You

What Open Source RAG can do for Modern Enterprises

Follow this guide to leverage your enterprise data with a self-hosted AI assistant, powered by the semantic search capabilities of open source vector databases.

time to read

10 mins

November 2025

Open Source For You

Open Source For You

ASF elevates Apache DevLake and Grails to top-level status

The Apache Software Foundation (ASF) has announced that Apache DevLake and Apache Grails have graduated to Top-Level Projects (TLPs), signalling maturity, community growth, and operational independence.

time to read

1 min

November 2025

Open Source For You

Anthropic releases Claude Agent SDK alongside Claude Sonnet 4.5

Anthropic has unveiled Claude Sonnet 4.5, its most powerful code-focused AI model to date, alongside the launch of the Claude Agent SDK, an open source toolkit that allows developers to build autonomous agents powered by Claude's architecture.

time to read

1 min

November 2025

Open Source For You

Open Source For You

How AI is Impacting the Internet of Things

AI and IoT are complementing each other to build powerful and secure connected devices.

time to read

3 mins

November 2025

Open Source For You

Open Source For You

Building Future-ready AI Hardware with Neuromorphic Computing and Sensing

If machines could learn and adapt like us, what doors would that open? Neuromorphic systems are not just mimicking the brain, they are setting the stage for AI that learns, senses, and evolves, just like we do.

time to read

3 mins

November 2025

Open Source For You

Open Source For You

Open Source MLOps Tools: Ideal for Managing ML Data Workflows

MLOps adds automation, organisation and reliability to the machine learning lifecycle. Open source MLOps tools do a great job of helping build a machine learning model, with each tool tackling a distinct challenge.

time to read

6 mins

November 2025

Open Source For You

Open Source For You

Google open sources MCP server for analysing ads data

Google has officially open sourced the Google Ads API Model Context Protocol (MCP) server, now available on GitHub.

time to read

1 min

November 2025

Open Source For You

Open Source For You

Popular Simulation Platforms for the Internet of Vehicles

In these days of traffic congestion and autonomous driving, software that connects pedestrians and vehicles with governing bodies is the need of the hour. Open source simulation platforms for the Internet of Vehicles are enabling just that.

time to read

3 mins

November 2025

Open Source For You

Building an IoT Product? Use OpenRemote

OpenRemote, the open source IoT platform, helps businesses and developers innovate while lowering expenses and enabling complete control over their connected products.

time to read

5 mins

November 2025

Listen

Translate

Share

-
+

Change font size