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)
Category: 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)
Turning Images Into Values (Python)
Open CV (https://opencv.org) is a library available to Python (and other languages) to assist with image based machine learning. I am looking to turn an image into pixel values and then turn a file of values back into an image. I am going to be using XKCD #1696 (AI Research) as the image test for … Continue reading Turning Images Into Values (Python)
PDF Merge Website (Python)
Merging multiple PDFs seems to be a common request, and most people don't want to spend a small fortune on a tool to do the merging. I first looked at this problem with an early Python project (https://geektechstuff.com/2018/02/17/python-3-merge-multiple-pdfs-into-one-pdf/) and later improved on that project by adding a simple GUI (https://geektechstuff.com/2018/07/04/pdf-merge-with-gui-v2-python/). Now I have gone a … Continue reading PDF Merge Website (Python)
Python Log Reader V1 (Python)
Log files are a key aid to any technician. They help identify errors and why they might be happening and can be a gold mine of information. Sadly they are sometimes so full of information that it is like looking for a needle in a haystack. If a log file is in plain text (.txt) … Continue reading Python Log Reader V1 (Python)
You must be logged in to post a comment.