Hacking challenges › Cryptography
Learning route · 7 challenges
# Cryptography
Encoding isn't encrypting, encrypting isn't hashing. Classical ciphers, XOR, hashes and why passwords are stored with salt.
⚠ For educational purposes only. A simulation for strictly educational purposes. Everything happens in your browser against made-up machines: it doesn't connect to any real system. Using these techniques against computers or networks without their owner's written permission is a crime (articles 197 bis and 264 of the Spanish Criminal Code). Learn in order to defend.
The basics before you start
Base64 or hex only change how the data is written: anyone can decode them without a key. If you see letters, numbers, + and / with an = at the end, think base64.
Caesar shifts each letter; Vigenère uses a word as the key. They fall to frequency analysis or to trying every key. They're useful for understanding the idea of a key.
The basis of many modern ciphers: it mixes each byte with the key. If the key is short and repeats, or you can guess it from the message format, it breaks.
A hash boils data down to a fingerprint that can't be reversed, but can be guessed: you try words until the fingerprint matches. That's why passwords are stored with slow, salted algorithms (bcrypt, Argon2).
Challenges, from easiest to hardest
FAQ
What do you learn on the Hacklab's Cryptography route?
Encoding isn't encrypting, and encrypting isn't hashing. Classical ciphers, XOR, hashes and why passwords are stored with salt. Concepts: encoding doesn't protect, classical ciphers, xor, hashes.
How many challenges are on the Cryptography route?
7 challenges ordered from easy to elite. Complete them all to earn the route badge.