Cryptography
Tag
39 posts from HNF26, Self-Created and picoCTF
HNF26 - 13
The challenge provided an encoded text block along with a short hint: i do a rotate and some 2 Ciphertext: The title “13” and the phrase “i do a rotate and some 2^6” pointed directly to ...
HNF26 - A lightkeeper of Nod-krai
The challenge provided a long block of ciphertext alongside an atmospheric story description: Beneath a lantern at the edge of the ruins, a traveller found a note ...
HNF26 - DISKLOCK
The challenge provided three files: DISKLOCK.LOG DISKLOCK.TXT PHOTO.LCK I checked DISKLOCK.LOG first to see what the program had done. According to the log, DISKLOCK v1.0 had encrypted PHOTO.BMP as PHOTO.LCK, then deleted the original image.
HNF26 - Lebron
The challenge provided a ciphertext string along with a basketball-themed description full of wordplay: Reading through the description revealed several distinct clues: “64 ...
HNF26 - Moving Schools
The challenge description said the author was moving to another CTF and had found this flag there: The flag started with SMU26 instead of HNF26, and the text inside the braces looked ...
HNF26 - Textbook Perfect
The challenge provided an RSA modulus n, a public exponent e, and a ciphertext c: The small public exponent, e = 3, made me check whether a cube root attack would work ...
HNF26 - Twice-Used Page
The challenge provided a file named tapes.txt containing two hexadecimal ciphertexts: The challenge title and the two ciphertexts pointed to a classic One-Time Pad (OTP) key reuse ...
HNF26 - the-last-transmission
The challenge provided this Morse code message: The message was split into three groups by the ..--.- symbol, which is Morse for an underscore. Decoding each group gave: Morse Letter ..
HNF 2025 - 23summit46
I heard encoding and encryption are 2 different things. Not sure whether this is useful.
YCEP 2025 - French Frenzy
Oh no! My French pen pal accidentally encrypted the contents of a few top-secret files, and things took an acidic turn! Now his boss is as sour as vinegar ...
Custom encryption
In this challenge, we will attempt to decode the contents of the given file that has been encrypted with a Python script. We first begin by downloading the 2 files, enc_flag and custom_encryption.py, by running wget <link1> <link2>.
ReadMyCert
Based on the description, we will be dealing with certificate requests in this challenge. Before starting this challenge, I actually had little knowledge about certificate requests.
eavesdrop
For this challenge, not much clue was given in the description. However, a hint was provided. We’ll have to keep that in mind when we analyse the packets in Wireshark.
Tapping
Both the description and the hint imply that the flag we are looking for in this challenge is most likely encoded using morse code. In fact, this made me recall the morse-code challenge where the challenge was to decode morse code (.wav file).
john_pollard
In this challenge, we will be dealing with RSA certificates. The contents of the downloaded certificate is as follows: Since the challenge wants us to break the certificate, I used the CertLogik Certificate Decoder website to gain a better understanding of the certificate.
Flags
Looks like an interesting challenge with a seemingly helpful description. Let’s see. We first download the file using wget <link>. The file downloaded is called flag.png.
Mr-Worldwide
Seems like an interesting challenge. We first download the file and display its contents using wget <link> and cat <file-name> respectively.
caesar
This challenge, as both the name and hint suggest, is all about the Caesar cipher. We first download the provided file using wget, and running cat on it displays the following string: This looks like a possible flag that we can submit…right? Nope.
New Caesar
As the name suggests, this challenge revolves around the concept of the caesar cipher. The downloaded file, new_caesar.py is used to encrypt the flag, and the encrypted flag is given in the challenge description: The following is how the encryption script, new_caesar.py looks like.
la cifra de
This is a challenge involving Vigenère cipher. After we run this command nc jupiter.challenges.picoctf.org 58295, we are greeted with a block of text: With this clue, I tried searching the years mentioned in the above text (1508, 1467, 1553, 1555).
Easy1
This is a straightforward(but tedious) one time pad challenge. The downloaded file, table.txt looks like this: With the encrypted flag UFJKXQZQUNB and the key SOLVECRYPTO, we have all we need to decrypt the flag.
spelling-quiz
This is, once again, a challenge involving substitution ciphers. We begin by downloading the given file and seeing its contents. After downloading the file using wget <link>, we realise that it is a zip file.
basic-mod2
This challenge is similar to the previous challenge, basic-mod1, but instead of calculating the modulus of each number, we need to calculate the modular inverse ...
basic-mod1
The approach for this challenge was already provided in the description, so we can just follow that. After downloading the file using wget, and running cat message.txt, we get this string of numbers: I used a python script to decrypt the message above in order to get the flag.
substitution0
As the description suggests, we will likely have to decode a message which was encrypted using substitution cipher. We first download the file using wget, and then run cat to see the message.
transposition-trial
This is a transposition cipher challenge. We first download the corrupted message by using wget. After running cat message.txt, we can see a scrambled message.
HideToSee
From the description, it seems like this challenge will be using both Forensics and Cryptography concepts. As usual, we start off by downloading the image using wget <link>.
rotation
As the challenge name and hint suggest, the flag is probably encrypted using a caesar cipher. We first download the file using wget to see how the encrypted flag looks like to understand how we should obtain the flag.
Vigenere
For this challenge, we only have to download the provided file, check its contents and decode it using a Vigenere cipher decoder, with the key given. Running cat cipher.txt displays the encrypted string that we will need to decode.
13
ROT13 (“rotate by 13 places”) is a simple letter substitution cipher that replaces each letter with the letter 13 positions after it in the alphabet. Since the English alphabet has 26 letters, applying ROT13 twice returns the original text.
The Numbers
Seems like an interesting challenge. The downloaded file looks like this. Now, this is surprising. All the previous challenges have had the same flag format of picoCTF{...}.
interencdec
From the description and hint provided, we can infer that this challenge will likely use a variety of decoding processes. We shall begin by downloading the file using wget <link>.
Mind your Ps and Qs
As the description suggests, this is an RSA cryptography challenge. After downloading the file provided using wget <link>, we can run cat values.
Mod 26
ROT13 shifts each letter by 13 positions in the alphabet. Since the English alphabet has 26 letters, this shift wraps around modularly (hence “Mod 26”).
credstuff
We first begin by downloading the file using wget <link>. The file provided for this challenge is a .tar file. A TAR file is an archive saved in the Tape Archive format.
morse-code
For this challenge, we are required to decode morse code in an audio format. We begin by downloading the file provided, which is a .wav file. However, using Audacity will likely be a longer approach, so I used an online morse code audio decoder tool instead.
rail-fence
This was an interesting challenge that involves a message encoded using the rail fence cipher. Essentially, the plaintext is written diagonally in a zig-zag format, according the number of “rails” in the “fence”.
substitution1
For this challenge, we will basically repeat the same steps we did to retrieve the flag for the substitution0 challenge. We first download the file using wget, and then run cat to see the message.
substitution2
For this challenge, we will basically repeat the same steps we did to retrieve the flag for the substitution0 challenge. First, we download the file using wget, and then run cat to see the message.