pywebio / PyWebIO

Write interactive web app in script way.
https://pywebio.readthedocs.io
MIT License
4.53k stars 384 forks source link

Processed input data on the client side #651

Open bka1988 opened 4 months ago

bka1988 commented 4 months ago

Hello! Is it possible to send data from the input field to the server, having previously processed it on the client?

It's going like this now: {"event":"from_submit","task_id":"login-171252656","data":{"oper_id":"406","pwd":"secret 406"}}

Can I process the data from the field on the JavaScript side with a certain algorithm?

For example MD5(secret 406) = 9acccec70230acda8431f332c33d3ad

I would send it over the network like this: {"event":"from_submit","task_id":"login-171252656","data":{"oper_id":"406","pwd":"9acccec70230acda8431f332c33d3ad"}}