Cryptography & Encryption
Last updated
Was this helpful?
Last updated
Was this helpful?
Fernet (symmetric encryption) - looks like base64 but decodes to garbage, in two parts. First part (32 bytes) is the key. Uses 128-bit AES in CBC mode and PKCS7 padding, with HMAC using SHA256 for authentication. IV is created from os.random()
.
A programming language that uses a series of only +-.[]<>
characters.
++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>----.>++++++++++++++.-----------------.++++++++.+++++.--------.+++++++++++++++.------------------.++++++++. = BrainFuck
Uses only the word ook
paired with punctuation marks (.!?
). Shorthand leaves out ook
.
....................!?.?...?.......?...............?....................?.?.?.?.!!?!.?.?.?..................!.!.!!!!!!!!!.?.......!. = OOK!
If this function is giving false positives/negatives, it can be tweaked by altering the number in the line:
0.6
has been tested as working for simple CTF usage.
X.509
For those interested in the details - you can see what's inside the public key file (generated as explained above), by doing this:- ```openssl rsa -noout -text -inform PEM -in key.pub -pubin or for the private key file, this:- openssl rsa -noout -text -in key.private which outputs as text on the console the actual components of the key (modulus, exponents, primes, ...)
`` extract public key from private key:
openssl rsa -in privkey.pem -pubout -out key.pub`
one time pad: pt - ct = key
decrypt rsa private key: openssl rsautl -decrypt -inkey $key_file < $pass.crypt
($pass.crypt is hex file? encrypted contents of pub key?)
Decodes to: w3lc0meFr31nd
<-- useful site which can help identify type of cipher.
<-- one of the best sites I have found with many decoders for many types of ciphers.
<-- very useful for chained ciphers which require different steps to solve. Can decrypt certificates.
Decode fernet @ <-- Will also give the IV and timestamp (could be useful!) more info about this @
Esoteric inferno encryption. Used in some CTF challenges. Malbolge programming language - text from base64 looks like random text, but complete garbage (much of it unprintable.) . Read for at and
Decode using
Decode using
-- extract information from various digital certificates
: Website for encryption/decryption of many different types at same time
good cipher tools:
If you like this content and would like to see more, please consider !