General
ASCII
Integers to corresponding ASCII characters.
Solution
def ascii():
a = [99, 114, 121, 112, 116, 111, 123, 65, 83, 67, 73, 73, 95, 112, 114, 49, 110, 116, 52, 98, 108, 51, 125]
r = ""
for elem in a:
r = r + chr(elem)
return r
print(ascii())Hex
Hex to bytes.
Solution
def hex():
s = "63727970746f7b596f755f77696c6c5f62655f776f726b696e675f776974685f6865785f737472696e67735f615f6c6f747d"
return bytes.fromhex(s)
print(hex())Base64
From hex to bytes to base64.
Solution
Bytes and Big Integers
Given a long, convert to bytes.
XOR Starter
XOR gymnastics.
Last updated