Introduction to CryptoHack
ASCII
data = [99, 114, 121, 112, 116, 111, 123, 65, 83, 67, 73, 73, 95, 112, 114, 49, 110, 116, 52, 98, 108, 51, 125]
print(''.join(chr(i) for i in data))Hex
data = "63727970746f7b596f755f77696c6c5f62655f776f726b696e675f776974685f6865785f737472696e67735f615f6c6f747d"
print(bytes.fromhex(data))Base64
import base64
data = "72bca9b68fc16ac7beeb8f849dca1d8a783e8acf9679bf9269f7bf"
print(base64.b64encode(bytes.fromhex(data)))Bytes and Big Integers
XOR Starter
With PwnTools
Without PwnTools
XOR Properties
With PwnTools
Without PwnTools
Favourite Byte
With PwnTools
Without PwnTools
You either know, XOR you don't
With PwnTools
Without PwnTools
Last updated