File size: 268 Bytes
48fe795
 
 
 
6bf9e91
 
 
1
2
3
4
5
6
7
8
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()