intro lessons 5
This commit is contained in:
parent
5a6f3e0b7e
commit
1c7b2f2e64
3 changed files with 18 additions and 8 deletions
9
intro.py
9
intro.py
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue