Rustaceans

Exploring Rust: Insights and Expertise from Rustaceans

Member-only story

Rust Challenge: Simple Cipher

Learning Rust Through Small Challenges

John Philip
Rustaceans
Published in
5 min readNov 25, 2024

--

In this mini Rust challenges, we will solve a problem using Rust. The goal of these challenges is to get comfortable reading and writing Rust code by solving various problems.

I do them on a daily basis, so if you want to join please come back here every day and check every challenge and lets us solve them together.

Challenge

These challenges are based on exercises from Exercism. You can find the original challenges and more on their platform below.

Instructions

Implement a simple shift cipher like Caesar and a more secure substitution cipher.

Step 1

“If he had anything confidential to say, he wrote it in cipher, that is, by so changing the order of the letters of the alphabet, that not a word could be made out. If anyone wishes to decipher these, and get at their meaning, he must substitute the fourth letter of the alphabet, namely D, for A, and so with the others.” —…

--

--

Rustaceans
Rustaceans

Published in Rustaceans

Exploring Rust: Insights and Expertise from Rustaceans

John Philip
John Philip

Written by John Philip

Dev | Life Café | Twitter at @amjohnphilip | Email: dxphilo@gmail.com

No responses yet