Skip to content

Instantly share code, notes, and snippets.

@humalotlouder
Last active March 11, 2021 06:07
Show Gist options
  • Save humalotlouder/666cb6aba90089474349d523e96aa514 to your computer and use it in GitHub Desktop.
Save humalotlouder/666cb6aba90089474349d523e96aa514 to your computer and use it in GitHub Desktop.
from tkinter import *
url = "http://pacific.safeseafoodcoin.com/api/getrawtransaction?txid="
import random
import time
import datetime
import codecs
root = Tk()
root.grid()
root.title("Message Decryption")
TopsInfo = Label(root, font = ('Roboto', 35, 'bold'), text='SafeSeafood Message Decrypt')
Tops = Frame(root, relief = SUNKEN, bd=10)
Tops.grid(sticky='news', columnspan=10)
TopsInfo.grid(sticky='news', columnspan = 10)
f1 = Frame(root, relief = SUNKEN, bd = 20)
f1.grid(sticky='wns', columnspan=10, rowspan=10)
localtime = time.asctime(time.localtime(time.time()))
lblInfo = Label(Tops, font=('Roboto', 10, 'bold'),
text = localtime, fg = "Steel Blue",
bd=10, anchor = 'w')
lblInfo.grid(row = 1, column = 1)
Msg = StringVar()
key = StringVar()
Result = StringVar()
def qExit():
root.destroy()
def Reset():
key.set("")
lblkey = Label(f1, font = ('arial', 16, 'bold'),
text = "TXID", bd = 16, anchor = "w")
lblkey.grid(row = 2, column = 0)
txtkey = Entry(f1, font = ('arial', 16, 'bold'),
textvariable = key, bd = 10, insertwidth = 4,
bg = "powder blue", justify = 'right')
txtkey.grid(row = 2, column = 1)
lblService = Label(f1, font = ('arial', 16, 'bold'),
text = " == ", bd = 16, anchor = "w")
lblService.grid(row = 2, column = 2)
txtService = Entry(f1, font = ('arial', 16, 'bold'),
textvariable = Result, bd = 10, insertwidth = 4,
bg = "powder blue", justify = 'right')
txtService.grid(row = 2, column = 3)
from requests import get as GET
def decode(key):
key = txtkey.get()
gettx = GET(url + key).text
rawtx = str(gettx)[690:]
decode_hex = codecs.getdecoder("hex_codec")
Msg = decode_hex(rawtx)
return(Msg)
def Ref():
clear = Msg.get()
Result.set(decode(clear))
btnTotal = Button(f1, padx = 16, pady = 8, bd = 16, fg = "black",
font = ('arial', 16, 'bold'), width = 10,
text = "Show Message", bg = "powder blue",
command = Ref).grid(row = 7, column = 1)
btnReset = Button(f1, padx = 16, pady = 8, bd = 16,
fg = "black", font = ('arial', 16, 'bold'),
width = 10, text = "Reset", bg = "green",
command = Reset).grid(row = 7, column = 2)
btnExit = Button(f1, padx = 16, pady = 8, bd = 16,
fg = "black", font = ('arial', 16, 'bold'),
width = 10, text = "Exit", bg = "red",
command = qExit).grid(row = 7, column = 3)
root.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment