Tag: cryptography
All the articles with the tag "cryptography".
File Encryption with AES in OpenSSL
A step-by-step guide to encrypting and decrypting files with AES-256-CBC in OpenSSL: generating a key and IV, PKCS#7 padding, deriving parameters from a password with PBKDF2, and inspecting the Salted__ file format.
File Encryption with RSA in OpenSSL
Breaking down RSA keys in OpenSSL at the byte level: generating a key pair, parsing the ASN.1 structure of private and public keys, then encrypting and decrypting a file with pkeyutl.
Creating a Digital Signature with RSA in OpenSSL
Creating an RSA digital signature in OpenSSL step by step: hashing a file with SHA-256, signing with the private key, verifying with the public key, and inspecting the recovered DigestInfo ASN.1 structure.
Field Rules — volgaCTF 2025
Factoring a modulus built from small primes, brute-forcing the key residue modulo each prime, and combining the residues with the Chinese remainder theorem to recover the flag from repeated modular exponentiations.
MindBlowing — PascalCTF 2025
Recovering a flag from a bitwise-AND number generator: extract 40-bit windows of the message with crafted seeds and combine them with OR in a Go solver.
My Favourite Number — PascalCTF 2025
How to guess Alice's favourite number without decrypting anything: re-encrypt candidate binary-search answers with Bob's public RSA key and match them against the ciphertexts in output.txt.
AES-CBC — Padding Oracle Attack
How to decrypt AES-CBC ciphertext without the key, and forge ciphertext that decrypts to chosen plaintext, by exploiting PKCS#7 padding-validation responses.
Wysi Prime — osu!gaming CTF 2024
Recovering RSA primes made only of the digits 2 and 7 with a breadth-first search, then decrypting the ciphertext in the crypto/wysi-prime challenge from osu!gaming CTF 2024.
Lucky Ticket — Tinkoff CTF 2024
Predicting millisecond-seeded ticket numbers to farm lucky tickets and reach 100% luck, then recovering the flag from the interview endpoint of Tinkoff CTF 2024.
ROSSAU — osu!gaming CTF 2024
Factoring a small RSA modulus with factordb, computing the private exponent, then looking up the player whose osu! user ID matches it to recover the flag.