Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions mcpi_sec.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from mcpi.minecraft import Minecraft
import hashlib
# Assignment 3 main file
# Feel free to modify, and/or to add other modules/classes in this or other files


import base64


st = "Ben test string"
stb = b"Ben test string"

li = []
for i in range(len(st)):
li.append(chr( (ord(st[i]) + i) ^ 1417 ))

ha = hashlib.md5(stb).hexdigest()[1:11]
print(hashlib.md5(stb).hexdigest())

out = ''.join(li)
out = out + ha
print(out)

mc = Minecraft.create("127.0.0.1", 4711)

mc.postToChat(out)
Binary file added raspberryjuice-1.12.1.jar
Binary file not shown.
Loading