I've had a Raspberry Pi camera module (v1) since spring 2015, but I've rarely put it to use. With some spare time on my hands I have decided to see if I can build a camera feed on a webpage. Before I continue I should point out that if you are interested in using the … Continue reading Raspberry Pi Live Camera Webpage Feed V1 (Python / Raspberry Pi)

# Category: Python

# Brute Force Caesar Cipher V2 (Python)

Around a month ago I used Python to brute force the Caesar Cipher (I blogged about it here: https://geektechstuff.com/2019/12/22/brute-force-caesar-cipher-python/). My original solution outputted a solution for each possible cipher shift, which worked ok for small text samples but for larger texts started to take up a large portion of the terminal and my time scrolling. … Continue reading Brute Force Caesar Cipher V2 (Python)

# Instant Messaging App With Vigenère Encryption (Python)

Over the last few weeks I have been looking at ciphers and encryption, which has included a Python program to brute force the Caesar cipher, Python to encrypt / decrypt with the Vigenère cipher , some Morse code and RSA Public Keys. With my recent looks into encryption, especially the look into the Vigenere Cipher, … Continue reading Instant Messaging App With Vigenère Encryption (Python)

# Morse Code (Python)

11th January is #LearnYourNameInMorseCodeDay. I found this out as GCHQ tweeted the following today: .-.. . .- .-. -. / -.-- --- ..- .-. / -. .- -- . / .. -. / -- --- .-. ... . / -.-. --- -.. . 🧐 — GCHQ (@GCHQ) January 11, 2020 Which is Morse Code. I've … Continue reading Morse Code (Python)

# Vigenère Cipher (Python)

Previously I looked at the Vigenère cipher, but I did not have a working Python example. After some thought and consideration I came to the realisation that the Vigenère cipher is pretty much just a Caesar cipher with a shift that changes each letter, which then allowed me to figure out how to make it … Continue reading Vigenère Cipher (Python)

# Code The Classics Volume 1 Review (Python)

If you grew up in the early 90's you may remember computing magazines that came with game programming code typed up inside, so that you the reader could type it into your computer and play the game. I'll admit this was always a bit "hit and miss" when I attempted it, which could have been … Continue reading Code The Classics Volume 1 Review (Python)

# RSA Public-Key Cryptography (Python)

I am currently undertaking the "Encryption & Cryptography" course on FutureLearn (https://www.futurelearn.com/courses/encryption-and-cryptography/) and looking at public-key cryptography, specifically today the RSA public-key method. RSA is named after Ron Rivest, Adi Shamir and Leonard Adleman (Rivest-Shamir-Adleman; RSA) and the details for the algorithm were first published in 1977. English mathematician, Clifford Cocks developed a similar system … Continue reading RSA Public-Key Cryptography (Python)

# Brute Force Caesar Cipher (Python)

"The Caesar Cipher (Caesar Shift, Caesar’s Code) is a simple, easy to implement substitution cipher. The cipher is named after Julius Caesar. The cipher works by taking the letters of the message and then shifts the letter a defined space along the alphabet. For example a shift of 1 character would make a=b, b=c, c=d … Continue reading Brute Force Caesar Cipher (Python)

# Jenkins – Connecting To GitHub and some Python

Jenkins is a tool to help with Continuous Integration / Continuous Delivery (CI / CD). I originally looked at installing Jenkins as a Java web app on my Raspberry Pi during this post: https://geektechstuff.com/2019/05/26/installing-apache-tomcat-jenkins-raspberry-pi/ . I am now hoping to expand a little bit more on using Jenkins by building a freestyle project that connects to … Continue reading Jenkins – Connecting To GitHub and some Python

# Turning A CSV Back Into An Image (Python)

In my previous post I looked at turning an image (in this case XKCD #1696) into it's pixel values. Now I am going to take the CSV of values and turn them back into an image. The Python for this function (including the Python for the functions to turn the image into a CSV from … Continue reading Turning A CSV Back Into An Image (Python)