dukia / app.py
Redscum's picture
Update app.py
48fe795 verified
raw
history blame contribute delete
268 Bytes
import os
os.system("pip install blake3")
import gradio as gr, base64, blake3, json
key = os.getenv("K", "506959266248")
def go(h): return blake3.blake3((key+h).encode()).hexdigest()
gr.Interface(go, gr.Textbox(label="hex-in"), gr.Textbox(label="hash-out")).launch()