intro lessons 5

This commit is contained in:
boyreau 2026-11-05 11:19:40 +01:00
commit 1c7b2f2e64
3 changed files with 18 additions and 8 deletions

View file

@ -1,6 +1,6 @@
import base64
from Crypto.Util.number import *
from pwntools import xor
from Crypto.Util.number import long_to_bytes
from pwn import xor
# Challenge intro-1
@ -24,3 +24,8 @@ def hex_to_b64(input: str) -> bytes:
# Challenge intro-4
def int_to_message_rsa(input: int) -> str:
return long_to_bytes(input)
# Challenge intro-5
def xor_13(input: str) -> str:
return xor(input, 13).decode("utf-8")