Encoding

ASCII

just take chr() using Python

num = [99, 114, 121, 112, 116, 111, 123, 65, 83, 67, 73, 73, 95, 112, 114, 49, 110, 116, 52, 98, 108, 51, 125]

msg = ""
for n in num:
	msg += chr(n)

print(msg)

Flag: crypto{ASCII_pr1nt4bl3}

Hex

take bytes.fromhex() using python

ct = "63727970746f7b596f755f77696c6c5f62655f776f726b696e675f776974685f6865785f737472696e67735f615f6c6f747d"
print(bytes.fromhex(ct))

Flag: crypto{You_will_be_working_with_hex_strings_a_lot}

Base64

use base64.b64encode() and base64.b64decode

Flag: crypto/Base+64+Encoding+is+Web+Safe

Bytes and Big Integers

bytes_to_long works the same as taking hex value of each byte, concatenating them, and then converting base16 to base10 using int(hex_string, 16).

Flag: crypto{3nc0d1n6_4ll_7h3_w4y_d0wn}

Encoding Challenge

from the server we get json containing encoding type and encoded message. we have to decode accordingly.

here is the solver.

Flag: crypto{3nc0d3_d3c0d3_3nc0d3}

Last updated